• retagged by
1,102 views
1 1 vote

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.

2 Answers

1 1 vote
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.
Position:
Show:

Related questions

2 2 votes
2 2 answers
595
595 views
GO Classes asked Feb 10
595 views
Consider the following C statements:$\texttt{char *str1 = "Hello;}$ $\quad // \text{stmt } S_1$$\texttt{char *str2 = "Hello;";}$ $\quad // \text{stmt } S_2$$\texttt{int ...