If an integer occupies 4 bytes and a character occupies 1 byte of memo

Loading

โœช Choose the correct option.

If an integer occupies 4 bytes and a character occupies 1 byte of memory, each element of the following structure would occupy how many bytes?


struct name {

int age;

char name[20];

}

A. 5
B. 24
C. 21
D. 22

Leave a Comment