Calculate the number of bytes a structure variable s occupies in the memory if it is defined as follows. [code] class abc { int

Huyền Thu

New member
Calculate the number of bytes a structure variable s occupies in the memory if it is defined as follows.
Code:
  class abc
  {
      int i;
      Decimal d;
  }
  struct sample
  {
     private int x;
     private Single y;
     private trial z;
  }
  sample s = new sample();
A. 24 bytes
B. 8 bytes
C. 16 bytes
D.
Code:
12 bytes
 

Tìm kiếm

Back
Top