FeedBack Form

Your Name :
Your Email :
Your Location :
Your Message :
   
FeedBack

C Programming INTERVIEW QUESTIONS

Languages
13. What is meant by core dump in C?
 
  • Core dump or core is a file, generated when a program is crashed or terminated abnormally because of segmentation fault or some other reason.
  • Information of the memory used by a process is dumped in a file called core. This file is used for debugging process. Core dump file is created in current working directory when a process terminates abnormally.
  • Core dump is a typical error occurs because of illegal memory access.
  • Core dump is also called as memory dump, storage dump or dump.
Your Name Your Email-ID
Your Answer
 
14. What is the difference between "printf" and "sprint"?
 
  • printf will write to the console.
  • sprintf will write to the buffer.
Your Name Your Email-ID
Your Answer
 
 
15. What is scope of a variable?
  Scope of a variable is the part of the program where the variable may directly be accessible.
In C, all identifiers are lexically (or statically) scoped.
Your Name Your Email-ID
Your Answer
 
16. What are the different data types in C?
  The basic data types are int, char and float. Int is used to declare variables that will be storing integer values.
Float is used to store real numbers. Char can store individual characters values.
Your Name Your Email-ID
Your Answer