Assume this is a 32bit environment what is the size of x str
Assume this is a 32-bit environment, what is the size of x? struct Terminal {char name [30]; char location [32]; struct Terminal* next;} x; 4 bytes 66 bytes 68 bytes 72 bytes
Solution
The answer is (B) 66 bytes
The size of the char datatype is 1 byte. Here we declared the name as 30, so it allocates 30 bytes and for the location it will allocate 32 bytes. The size of the pointer in 32 bit environment is 4 bytes so all becomes 66 bytes.
![Assume this is a 32-bit environment, what is the size of x? struct Terminal {char name [30]; char location [32]; struct Terminal* next;} x; 4 bytes 66 bytes 68 Assume this is a 32-bit environment, what is the size of x? struct Terminal {char name [30]; char location [32]; struct Terminal* next;} x; 4 bytes 66 bytes 68](/WebImages/35/assume-this-is-a-32bit-environment-what-is-the-size-of-x-str-1103497-1761583548-0.webp)