Sail E0 Webinar
Question

What will be output if you compile following c code ?



void main()
{
int a=1,b=2;
printf("%d",add(a,b));
}
int add(int a,int b)
{
return (a+b);
}


Options:
A .  Run time Error
B .  Compile Error
C .  3
D .  None of these
Answer: Option A



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