CJCoding With Joseph
15per day
← Back to Question List
C Code Walkthrough #3

sizeof Operator

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