Sail E0 Webinar
Question

What will be output if you compile following c code ?


#include<stdio.h>
int add(a,b)
{
int c=a+b;
return c;
}
void main()
{
int a=10,b=20;
printf("%d",add(a,b));
}


Options:
A .  Compile Error
B .  30
C .  0
D .  None of these
Answer: Option B




Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers