Question
f(int a, int b)
{
int a;
a = 20;
return a;
}
Point out the error in the program
f(int a, int b)
{
int a;
a = 20;
return a;
}
Answer: Option C
Was this answer helpful ?
f(int a, int b) The variable a is declared in the function argument statement.
int a; Here again we are declaring the variable a. Hence it shows the error "Redeclaration of a"
Was this answer helpful ?
Submit Solution