Which statement is true? A. Functions are declared in header files B. Functions are defined in header files

Showing Answers 1 - 6 of 6 Answers

Vijay K

  • Sep 5th, 2007
 

A. is true.

void fun(int);   -> This is declaring a function.

void fun(int a)   -> This is defining a function.
{
..
..
}

  Was this answer useful?  Yes

pvsola

  • Mar 15th, 2008
 

Both statements are true, functions can be declared and defined in header file, but not a good practice.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions