Sail E0 Webinar
Question
Short testarray[4][3] = { {1}, {2,3}, {4,5,6}};
printf("%d", sizeof(testarray));
Assuming a short is two bytes long, what will be printed by the above code?
Options:
A .  6
B .  7
C .  12
D .  24
E .  It will not compile because not enough initializers are given
Answer: Option D

Submit Your Solution Below and Earn Points !

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers