What kind of function declarations should be put in .c files?
Functions which are not visible to outside world, like static functions.
we are not supposed to put any function declaration in .c file.
we can put both static and global function declarations in .c file.
we can put any kind of function declaration in .c file, no harm in doing so.
Generally we put all function declarations in header files. But we may be having some local functions which are not exposed to outside world like static functions, declarations for these kind of functions we can have in the .c file.
Back To Top