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

What is the output of the following 'c' program?
main 0
{
char ch = 'A'
printf("%d%", size of (ch),
sizeof('A');
}

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

The correct option is A 11

The output of the following 'c' program:-
main 0
{
char ch = 'A'
printf("%d%", size of (ch),
sizeof('A');
}

The alphabetical number of c=3.

The alphabetical number of h=8.

So, the size of ch=8+3=11.

Output:-

11.



flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Alkynes - Preparation
CHEMISTRY
Watch in App
Join BYJU'S Learning Program
CrossIcon