CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

sizeof Operator

C code walkthrough · Question 3
easyPrinting

Code

Read carefully. What does this print?
1#include <stdio.h>
2 
3int main() {
4 char c = 'A';
5 int i = 100;
6 double d = 3.14;
7 printf("%lu\n", sizeof(c));
8 printf("%lu\n", sizeof(i));
9 printf("%lu\n", sizeof(d));
10 return 0;
11}

Your answer