wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following C statements:
S1: Whil (x);
S2: for (x,y,z)
S3: float f=x;
The number of correct statements which will give syntax error is/are______?

A
None of the above
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
3
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
2
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
1
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D 1
  • S1 is correct as it can be treated as function.
  • S2 gives syntax error as for () is used for loop and should be properly defined.
  • S3 is syntactically correct.

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