what does header file can contain in c?
i. Global variable declarations
ii. type def declarations
iii. global variable definitions.
i & ii
i, ii, & iii
Below are the things that have to be put in an header file.
1. Global variable declarations
2. type def declarations
3. Don't put global variable definitions in header files.
It may mess up when people include same file multiple times
Back To Top