The code is showing compile error "lvalue required as left operand of assignment".I am not able to understand why it occurs. Can anybody explain it?
#include <stdio.h>
void main() {
int k=8;
int m=7;
k<m ? k=k+1 : m=m+1;
printf("%d",k);
}
The code is showing compile error "lvalue required as left operand of assignment".I am not able to understand why it occurs. Can anybody explain it?
#include <stdio.h>
void main() {
int k=8;
int m=7;
k<m ? k=k+1 : m=m+1;
printf("%d",k);
}