0

Output of C code

Why is the output of this code 40? https://code.sololearn.com/cH7l8SWdCZRT/#c

21st Jul 2020, 7:55 PM
Edward Finkelstein
Edward Finkelstein - avatar
2 ответов
+ 1
A Union size is the biggest size among all data types in that in that union. So int a[10]; requires highest bytes that is 4*10=40 4 size of int. 10 size of array length...
21st Jul 2020, 7:59 PM
Jayakrishna 🇮🇳
0
Thank you!
21st Jul 2020, 8:03 PM
Edward Finkelstein
Edward Finkelstein - avatar