CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
2
You visited us 2 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following 'C' code
main()
{
int x = 10;
x = x + 10:24;
}

If above code is complied which of the follwing error is produced?

A
Lexical error
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Logical error
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
Syntax error
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
Semantic error
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C Syntax error
x = x + 10:24; is not correct syntax
It will produce syntax error

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
The Number Line
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon