-
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;
}
-
- Error: 'Declaration terminated incorrectly'
- Error: 'Syntax error'
- Error: 'Lvalue required'
- Error: 'Expression syntax'
- The program works correctly without error.
Correct Option: E
The program works correctly without error.