answersLogoWhite

0


Best Answer

header files are predefined in c, they include the all necessary function to u to do your work easy instead of writing a function for printing a message or to read a input form key board we are using the library functions which are in the header files.

there are different types of header files depending upon the requirement we use them.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

Header file includes syntax for a program to execute with the commands as syntaxed.

Library contains executable commands required by the program to run positively.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is a header file and library function?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the header file for string library function?

string.h


Is header file the library file?

No. Header files are those which contains declaration part of function & library files are those which contains definition part of function. These are those functions which we called in our program by using header files.


Difference between library file and header file?

EX: pgm #include<stdio.h> main() { printf("haiii"); } Header file: (1) contains the function(printf) declaration (2) during preprocessing, the printf function is replaced by the function declaration Library file : (1) contains the function(printf) definition (2) during linking, the function declaration is replaced with the function definition.obviously, everything will be in object while linking


Which library file contain the definition of stdioh and conioh header file function definition in C language?

Platform dependent, possibly LIBC.LIB or something like that.


How do you find out the name of a library file of its corresponding header file?

i can't answer it


What is the difference between program and programing?

the program contains the which are coding like as our header file ,void main,library function etc.


What are the header file of scanf function?

stdio.h


Which header file has clrscr function?

conio.h


What does conioh in programming mean?

conio.h is a library function which is predefined in the header file and 'clrscr();','getch();' and many other functions come under this.


Which header file must be included to use the function pow?

The std::pow() function can be found in the <cmath> header.


How is a library file incorporated in a C program?

Every library requires a header file (.h file) that can be included in any translation unit that requires access to the library. The header describes the library interface. The library implementation may be provided by a corresponding .c source file in which case you can compile the library into your program just as you would any other translation unit. However, most library implementations are provided by a precompiled library file (.lib file) and you generally won't have access to the source file. The precompiled library file is required by the linker while the corresponding header is required by the compiler.


Difference between header file and library file?

A header file is normally used for declarations to provide an interface that can be included into a source file that wants to use the functions/variables that have been declared. If the header file contains function prototypes, it will usually have a corresponding source file that defines the functions. /* example.h */ #define bTRUE 1 #define bFALSE 0 typedef int BOOL BOOL bEvenNumber(unsigned int uiNumber); /* example.c */ #include "example.h" BOOL bEvenNumber( unsigned int uiNumber) { return (uiNumber & 1) ? bFALSE : bTRUE; }