C functions Questions and Answers

A function prototype is a mere declaration of a function. It is written just to specify that there is a function.....
The declaration of functions defaults to external linkage. The only other storage class possible for a function is static....
In ANSI, fflush() [returns 0 if buffer successfully deleted / returns EOF on an error] causes the system to empty the buffer associated with the specified output stream.....
malloc() and calloc() function - Both functions are used to dynamically allocate the memory. The difference is that calloc initializes the allocated memory to 0 or Null while malloc contains garbage values.....
strncpy() is similar to memcopy() in which the programmer specifies n bytes that need to be copied.....
exit() and _exit() : exit() does cleanup work like closing file descriptor, file stream and so on, while _exit() does not....