Question: Consider this structure declaration: Struct Wardrobe 3. double collarsize; int waistsize; int inseamsize; Wardrobe YourClothing; a. If doubles are four bytes and integers are two
Consider this structure declaration: Struct Wardrobe 3. double collarsize; int waistsize; int inseamsize; Wardrobe YourClothing; a. If doubles are four bytes and integers are two bytes, what is the amount of b. How will you refer to waistsize? c. Assume the following declaration: Wardrobe family[8]; how will you d. Given this added structure declaration: memory set aside by this declaration? refer to the first family member's collarsize? Struct Shoplist int spendlimit; string favoritestore; Wardrobe sizes; Shoplist Jerry; How will you refer to Jerry's collarsize? e. What is wrong with each of the following statements? a. Shoplist[1].spendlimit 1000; b. family.waistsize[51 32
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
