Is the second line of code considered as a syntax error or semantic error in C ++?
int a = 7; 3 = a;
In a standard contextless C ++ grammar, I found this statement syntactically valid.
c ++ compiler-construction syntax-error lvalue
Abdul rehman
source share