How Structure Elements are Stored
Whatever be the elements of a structure, they are always stored in contiguous memory locations.
Example
#include<stdio.h> int main() { struct book { char name; float price; int pages; }; struct book b1 = { 'B', 130.00, 550 }; printf("\nAddress of name = %u", &b1.name); printf("\nAddress of price = %u", &b1.price); printf("\nAddress of pages = %u", &b1.pages); getchar(); return 0; }