Can function definition be present in header files?

Can function definition be present in header files? mcq and its answer is provided on this page.

Function Definition is code that represents the instructions or rules of that function.

Header File is a file that contains necessary functions and variables for specfic tasks.

Can function definition be present in header files?

Que. Can function definition be present in header files?
a a) Yes
b b) No
c c) Depends on the compiler
d d) Depends on the standard of c programming language
Answer: a
Explanation : None.


Comments