1
You visited us
1
times! Enjoying our articles?
Unlock Full Access!
Byju's Answer
Standard VII
Mathematics
Properties of Integers under Addition
Which of the ...
Question
Which of the following results lexical error?
A
int a_b;
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
int a, b;
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
int a; b;
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
int 1ab;
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution
The correct option is
D
int 1ab;
int 1ab;
Here 1ab do not correspond to any token.
It produces lexical error.
Suggest Corrections
0
Similar questions
Q.
Which of the following code will produce lexical error?
Q.
Which of the following is not a functionality of lexical analysis?
Q.
Consider the following C program:
Program 1:
#include <stdio.h>
int main( )
{
float x;
while (x
≥
5)
Printf ("%d",x);
}
Program 2:
# include <stdio.h>
int main ( )
{
int temp,_temp2;
@_/ / Hello World
return 0;
}
Which of the above gives lexical error ?
Q.
Which of the following rule is used in lexical analysis to identify the tokens?
Q.
Which of the following error results in unadjusted cash book balance?
View More
Join BYJU'S Learning Program
Grade/Exam
1st Grade
2nd Grade
3rd Grade
4th Grade
5th Grade
6th grade
7th grade
8th Grade
9th Grade
10th Grade
11th Grade
12th Grade
Submit
Related Videos
Properties of Addition under Integers
MATHEMATICS
Watch in App
Explore more
Properties of Integers under Addition
Standard VII Mathematics
Join BYJU'S Learning Program
Grade/Exam
1st Grade
2nd Grade
3rd Grade
4th Grade
5th Grade
6th grade
7th grade
8th Grade
9th Grade
10th Grade
11th Grade
12th Grade
Submit
AI Tutor
Textbooks
Question Papers
Install app