564 views
0 votes
0 votes
Find the line number in which lexical error present in the following program.

1.main()

2.{

3.int x;y;z;

4./*comment1*/

5./*com/*ment2*/end*/

6.x="A";

7.}

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
1
Soumya Tiwari asked Nov 27, 2018
1,252 views
Consider the following transition rules:A->BCC->+BC|A|$\epsilon$B->DB{print '+'}|$\epsilon$D->(A)|id{print num.value}On input '5+67' this translation scheme printsA 5+67+...
1 votes
1 votes
0 answers
2
Soumya Tiwari asked Nov 21, 2018
567 views
Consider the following C fragmentFro(int x=0;x<=n;x++)Which type of error detected by the C compiler for the above code?A.Lexical ErrorB.Suntactic ErrorC.Semantic ErrorD....
0 votes
0 votes
0 answers
3
muthu kumar asked Nov 16, 2018
149 views
0 votes
0 votes
0 answers
4
aoao asked Sep 6, 2018
186 views
I am getting 5 as answer.I am not getting the solution approach? How did sign of A of production 5 get 0?