Saved Bookmarks
| 1. |
Explain the type of structure defined below and calculate the number of bytes required to store the structure variable s1. [Considerthe size of int as 4 bytes and char as 1 byte] struct student { int mo, mark; char name[25]; struct date { int dd, mm, yy; }doj; }s1; |
||||||||||||||||
|
Answer» A structure contains another structure, then it is called nested structure.
The structure vairable doj used 12 bytes and s1 used a total of 45 bytes memory. |
|||||||||||||||||