Sail E0 Webinar
Question

What will be output if you compile following c code ?


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


Options:
A .  Compile Error
B .  20
C .  40
D .  None of these
Answer: Option C




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