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

What will be the output of the following programs?
main 0
{ static char a [ ] = " BOMBAY " ;
char* b = " BOMBAY ";
printf ("/n%d%",sizeof (a)
sizeof (b):}

A
a = 7, b = 7
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
a = 7, b = 2
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
a = 2, b = 7
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
a = 7, b = 0
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Join BYJU'S Learning Program
CrossIcon