Question
What is the output of the below code considering size of short int is 2, char is 1 and int is 4 bytes? int main() { short int i = 20; char c = 97; printf("%d, %d, %d\n", sizeof(i), sizeof(c), sizeof(c + i)); return 0; }
Answer: Option C
Was this answer helpful ?
None.
Was this answer helpful ?
More Questions on This Topic :
Question 2. Which type conversion is NOT accepted? ....
Question 5. What is the size of an int data type? ....
Question 9. What is short int in C programming? ....
Submit Solution