Question: Consider the following structure declarations: struct st 1 { short s [ 6 ] ; char c [ 8 ] ; } ; struct st

Consider the following structure declarations:
struct st1{ short s[6]; char c[8]; }; struct st2{ int i[3]; char c[6]; short s[1]; }; struct st3{ char c[5]; int i; short s[4]; };
What is the total size of the structures st1, st2, and st3?
Group of answer choices
20,20 and 18
22,20 and 24
24,20 and 24
20,20 and 20
22,24 and 24

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!