569 views
1 votes
1 votes
Consider the following C fragment

Fro(int x=0;x<=n;x++)

Which type of error detected by the C compiler for the above code?

A.Lexical Error

B.Suntactic Error

C.Semantic Error

D.Logical Error

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,259 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+...
0 votes
0 votes
0 answers
2
Soumya Tiwari asked Nov 21, 2018
568 views
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.}
0 votes
0 votes
0 answers
3
muthu kumar asked Nov 16, 2018
150 views
0 votes
0 votes
0 answers
4
aoao asked Sep 6, 2018
188 views
I am getting 5 as answer.I am not getting the solution approach? How did sign of A of production 5 get 0?