C Programming :: Functions - Discussion
Home > C Programming > Functions > MCQs Questions Discussion
14 / 53
What error would the following function given on compilation?
#include<stdio.h>
int fun(int a, int b)
{
int a;
a=20;
return a;
}
void main()
{
int x = fun(1,3);
}
#include<stdio.h>
int fun(int a, int b)
{
int a;
a=20;
return a;
}
void main()
{
int x = fun(1,3);
}
AMissing parentheses is return statment.
BThe function should be defined as mt fun (int a, int b)
CRedeclaration of a
DNone of these
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!