1.

Calculate the memory requirement for the following structure variable s1. [Consider the size of int = 4, char = 1 and oat = 4] struct student { int mo;char name[25]; float height; }s1;

Answer»
Variable nameNo. of bytes used
mo4 bytes
name25*1 = 25 bytes
height4 bytes
Total33 bytes

The structure variables s1 used 33 bytes memory



Discussion

No Comment Found