Include directory is special directory which content all the header files of c language. Extension of header files in c language is h. All header files only keep declaration of functions, declaration of data type and micro constants. Body of function i.e. function definition is not written in the header files. Hence no one can get source code of function like printf, clrscr etc. All the function declaration in header file is extern. Since visibility of extern data type is whole the program. Hence other file can also access such function. Body of function of header file is supplied at the time of linking.
C language interview questions solution for freshers beginners placement tricky good pointers answers explanation operators data types arrays structures functions recursion preprocessors looping file handling strings switch case if else printf advance linux objective mcq faq online written test prime numbers Armstrong Fibonacci series factorial palindrome code programs examples on c++ tutorials and pdf
What is header file in c?
Include directory is special directory which content all the header files of c language. Extension of header files in c language is h. All header files only keep declaration of functions, declaration of data type and micro constants. Body of function i.e. function definition is not written in the header files. Hence no one can get source code of function like printf, clrscr etc. All the function declaration in header file is extern. Since visibility of extern data type is whole the program. Hence other file can also access such function. Body of function of header file is supplied at the time of linking.
Subscribe to:
Post Comments (Atom)
2 comments:
if definition of functions is not saved in header files,then where these are saved?
Function definition is added at the time of linking. It is saved at compiler.
Post a Comment