Sail E0 Webinar
Question

What will be output if you compile following c code ?


#include<stdio.h>
auto int a;
void changeval(int x)
{
a=x;
}
void main()
{
int a=15;
printf("%d ",a);
changeval(75);
printf("%d",a);
}


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