Sail E0 Webinar
Question


Which of the following statements are correct about the below program?


#include<stdio.h>
int main()
{
int n = 0, y = 1;
y == 1 ? n=0 : n=1;
if(n)
printf("Yes\n");
else
printf("No\n");
return 0;
}
Options:
A .  Error: Declaration terminated incorrectly
B .  Error: Syntax error
C .  Error: Lvalue required
D .  None of above
Answer: Option C

No answer description available for this question. 



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers