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?#include int main(){short int i = 20;char c = 97;printf("%d, %d, %d\n", sizeof(i), sizeof(c), sizeof(c + i));return 0;}

🎲 Try a Random Question  |  Total Questions in Quiz: 113  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
C Programming Practice Test: Miscellaneous Topics — practice the complete quiz, review flashcards, or try a random question.


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?<br>#include <stdio.h><br>int main()<br>{<br>short int i = 20;<br>char c = 97;<br>printf("%d, %d, %d\n", sizeof(i), sizeof(c), sizeof(c + i));<br>return 0;<br>}