#include<stdio.h>
int main(void) {
int p=3,q=4,y,z;
(p>q?y=5:z=10);
printf(" %d %d ",y,z);
return 0;
}
Compile Info
prog.c: In function 'main':
prog.c:5:15: error: lvalue required as left operand of assignment
(p>q?y=5:z=10);
^
z is already a variable ,then why it is saying lvalue required ??