315 views
1 votes
1 votes

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  

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
gateexplore asked Nov 17, 2023
86 views
0 votes
0 votes
1 answer
3
Sajal Mallick asked Oct 13, 2023
166 views
Does Follow and First operation always apply on non left recursive grammar?