271 views
1 votes
1 votes
int 7=10;

It is a semantic error or syntax error?

My thinking is that it can be tokenized as id id = id ;….So it is valid statement...so it must be semantic error?

Correct me if I am wrong.

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
Dknights asked Oct 8, 2023
107 views
Can someone explain the chart and table for the below grammar for LR(1)?E->numE->E+E/E*E
0 votes
0 votes
0 answers
3
samarpita asked Dec 10, 2021
231 views
we know that a + *b there is no semantic error but a + /b is a syntax error or semantic error?
1 votes
1 votes
0 answers
4
samarpita asked Dec 10, 2021
459 views
My question is here that...we know what is static single assignment code ...that the left side we will be a new variable...and in 3 address code there is no such thing......