Sail E0 Webinar
Question

What will be output if you compile following c code ?


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


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