CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
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.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Properties of Addition under Integers
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon