#include <stdio.h> int main() { short int i = 20; char c = 97; printf("%d, %d, %d\n", sizeof(i), sizeof(c), sizeof(c + i)); return 0; }
a) 2, 1, 2
b) 2, 1, 1
c) 2, 1, 4
d) 2, 2, 8
What will be the output of the following C code considering the size of a short int is 2, char is 1 and int is 4 bytes?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will be the output of the following C code considering the size of a short int is 2, char is 1 and int is 4 bytes?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!