Sail E0 Webinar
Question
Consider the following code:
void main()
{
int a[5] = {6,8,3,9,0}, i=0;
if(i != 0)
{
break;
printf("%d", a[i]);
}
else
printf("%d", a[i++]);
}
What is the output of the above program?
Options:
A .  6
B .  8
C .  Runtime error
D .  Syntax error
E .  No output
Answer: Option D

Submit Your Solution Below and Earn Points !

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers