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.