How many bytes will the structure variable samp occupy in

Loading

โœช Choose the correct option.

How many bytes will the structure variable samp occupy in memory if it is defined as shown below?

class Trial {
int i;
Decimal d;
}
struct Sample {
private int x;
private Single y;
private Trial z;
}
Sample samp = new Sample();

A. 20 Bytes
B. 12 Bytes
C. 8 Bytes
D. 16 Bytes

Leave a Comment