Sail E0 Webinar
Question

What will be output if you compile following c code ?


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


Options:
A .  Compile Error
B .  10 20 0
C .  10 20 30
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