S
siddharth_jain_1
Hello,
1) what do header files contain exactly?
Do they just contain the variable declarations, typedefs and
function prototypes?
2) taking the example of iostream.h: it contains the prototyoes of
various functions. which file has the actual code of these functions?
3) If I build my own header file (header.h) which includes some
function prototypes and I have another file (program.c) that has the
actual code for these functions, when I go to use those in another
program. If i #include "myheader.h" in my new file (project.c) will it
then know to look in code.c for the function?
4) Could someone please guide me to a good link from where I can read
about the usage of header files/
Thanks,
Siddharth Jain
1) what do header files contain exactly?
Do they just contain the variable declarations, typedefs and
function prototypes?
2) taking the example of iostream.h: it contains the prototyoes of
various functions. which file has the actual code of these functions?
3) If I build my own header file (header.h) which includes some
function prototypes and I have another file (program.c) that has the
actual code for these functions, when I go to use those in another
program. If i #include "myheader.h" in my new file (project.c) will it
then know to look in code.c for the function?
4) Could someone please guide me to a good link from where I can read
about the usage of header files/
Thanks,
Siddharth Jain