Identify which of the following are declarations

  • 0 replies
  • 1385 views
*

Offline mechanic

  • Engineer
  • *****
  • 3420
  • Gender: Male
  • Engineer
    • View Profile
    • Engineering Forum
Identify which of the following are declarations
« on: April 28, 2016, 03:09:57 PM »
Question: Identify which of the following are declarations

Code: [Select]
1 : extern int x;
2 : float square ( float x ) { ... }
3 : double pow(double, double);

Options are:

A.    1   
B.    2
C.    1 and 3   
D.    3


Correct answer is:

C.    1 and 3