Question
Identify which of the following are declarations
1: extern int x;
2: float square ( float x ) { ... }
3: double pow(double, double);
Answer: Option C
Was this answer helpful ?
extern int x; - is an external variable declaration.
double pow(double, double); - is a function prototype declaration.
Therefore, 1 and 3 are declarations. 2 is definition.
Was this answer helpful ?
More Questions on This Topic :
Question 4.
By default a real number is treated as a
....
Question 7.
What are the types of linkages?
....
Question 10.
Point out the error in the following program....
Submit Solution