Sail E0 Webinar
Question

What will be output if you compile following c code ?


#include<stdio.h>
int val;
static int funct()
{
return val*val;
}
void main()
{
val=5;
funct();
val++;
printf("%d",funct());
}


Options:
A .  compile error
B .  25
C .  36
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