I am new to C Language. I have a doubt regarding the lvalue Error. As I can understand, We get an lvalue Error when there is no permanent-address-bearing-variable to store the Rvalue. Here I can see a variable on the left side. But still, I get lvalue error. Can somebody please clear my concepts of lvalue or the operator used.
#include"stdio.h"
void main()
{
int x=10,a;
x<0 ? a = 100 : a = 1000;
printf(" %d",a);
}
Thank You.