1.

Which of the following statements are correct about the program given below?
#include <stdio.h>
int main ( )
{
int a = 0, b = 1;
b == 1 ? (a = 0) : (a = 1);
if (a)
printf ("YES n");
else
printf ("No n");
return 0;
}

A. Error: 'Declaration terminated incorrectly'
B. Error: 'Syntax error'
C. Error: 'Lvalue required'
D. Error: 'Expression syntax'
E. The program works correctly without error.
Answer» F.


Discussion

No Comment Found

Related MCQs