C - Functions - Discussion

You Are Here :: Home > C > Functions - Discussion

 



Q.

What error would the following function give on compilation?

f(int a, int b)
{
int a;
a=20;
return a;
}

A. Missing parentheses in return statement B. The function should be defined as int f(int a, int b)
C. Redeclaration of a D. None of the above

Answer: Option C
Explaination:

No Explanation



Discussion

Your Comments Goes here...
NameDiscussion