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

Which of the following declaration is not supported by C?

A
float str = 3e2;
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Both String str; & float str = 3e2;
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
char *str;
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
String str;
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D String str;
It is legal in Java, but not in C

flag
Suggest Corrections
thumbs-up
6
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
The Three Organs of Government
CIVICS
Watch in App
Join BYJU'S Learning Program
CrossIcon