#include<stdio.h>
Another answer: Nothing.
stdio.h
conio.h
The std::pow() function can be found in the <cmath> header.
string.h
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
stdio.h
conio.h
The std::pow() function can be found in the <cmath> header.
string.h
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.
You define the function at the same time you declare it, usually in the header file, sometimes in an .hpp file.
You need to #include the header file that contains the missing function's declaration.
Header files are not much different from usual cpp files. There are basically two different things. It's file extension: you need to choose "header file" when you create it or save as .h file. Second is header files do not have main() function. When you are done with you header file do not forger to include it in your project by writing preprocessor directive:#include "your_header_file.h"
It contains useful function-prototypes.
list of header files in c and function prototype associated with each 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
Put a function prototype in a header file or before the function is called in a C source file. void foo(void); or int bar(int,float char*);