I don't know what kind of compiler you're using:
Code:itsme@itsme:~/C$ cat cond.c #include <stdio.h> int main(void) { int a = 0; int b; a<10?b=100:b=200; return 0; }It doesn't work no matter what a starts out as.Code:itsme@itsme:~/C$ gcc -Wall cond.c -o cond cond.c: In function `main': cond.c:8: warning: use of conditional expressions as lvalues is deprecated cond.c:8: error: invalid lvalue in assignment itsme@itsme:~/C$