Consider the following C program:
int main (void)
{
in/*this is an example*/z;
double/*is it an error?*/y;
print( “This is simple” );
return 0;
}
- what is the error in this code semantic or syntax phase error ??
answer is given semantic but i think its a syntax phase error because in parse tree how can we derive 'in z' above which is not declared