C Languages Interview Questions

53. How many bytes are occupied by the int, char, float, long int and double?
 
 
Your Name Your Email-ID
Your Answer
54. What is the difference between exit() and return() in C?
 
  • exit() is a system call which terminates current process.
  • exit() is not an instruction of C language.
  • Whereas, return() is a C language instructions/statements and it returns from the current function (i.e. provides exit status to calling function and provides control back to the calling functions).
 
Your Name Your Email-ID
Your Answer
55. How do you open the file?
 
  • The File is opened by the statement
  • fp=fopen("file_name","mode");
  • Where fp means file pointer, mode is the file opening mode, such as write,read, or append mode.
 
Your Name Your Email-ID
Your Answer
56. Basically, what does the header files contain?
  The header file contains declarations of library functions (prototypes of library functions) and useful enumerations and macros for the convenience of the programmers.
 
Your Name Your Email-ID
Your Answer
123456789101112


131415 Page 14 of 15