retagged by
735 views
1 votes
1 votes

consider this c code:

wheil(1){
    printf("hi");
}

will this code fragment gives lexical error or not. If not then who is responsible for this error.

retagged by

2 Answers

1 votes
1 votes
No it is not lexical error. There will be no Syntax error as well, but there will be a semantic error because it does not recognize wheil.

Related questions

0 votes
0 votes
1 answer
1
Ebrahim asked Jan 12
147 views
Q1. For the following grammar N - AB | BA A - a | CAC B - b | CBC C - a | b Find the FIRST and FOLLOW
0 votes
0 votes
1 answer
2
Ebrahim asked Dec 18, 2023
237 views
Like Example Above please answer this questionQ5. Implement a+b*(c+d)-e/finto: a). Quadruples.b). Triples.c). Indirect triples.
0 votes
0 votes
1 answer
3
Ebrahim asked Dec 18, 2023
250 views
Please Answer this question 4. Discuss design issues in code generation. Generate target code for the following basic block. t1 : = a + b t2 : = c ...