Home » C# Programming » Structures

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();

Correct Answer: 12 bytes

← Previous Question Next Question→

More Questions from Structures

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion