int main()
{
print("%d",a);
return 0;
}
If i execute,i will get error as:-
prog.c:112:17: error: 'a' undeclared (first use in this function)
printf("%d",a);
Now as this is the semantic error,so how does semantic analyzer knows the row and column number while printing error?
I know lexical analyzer can give the row number and column number of error as it tokenize the entire program but is this also possible in sematic analyzer?