/*WHY IT IS GIVING ERROR AS L-Value Required..but when we rewrite as y==1?n=0:(n=1); code will work */
#include<stdio. h>
#include<conio. h>
void main()
{
int n,y=1;
clrscr();
y==1?n=0:n=1;
getch();
}
#include<stdio. h>
#include<conio. h>
void main()
{
int n,y=1;
clrscr();
y==1?n=0:n=1;
getch();
}
Comment