Sail E0 Webinar
Question

What will be output if you compile following c code ?


#include<stdio.h>
int a=10;
void compute(int a)
{
a=a;
}
void main()
{
int a=100;
printf("%d ",a);
compute(a);
printf("%d",a);
}


Options:
A .  Compile Error
B .  10 10
C .  100 10
D .  100 100
Answer: Option D



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