Home / C# Programming / Structures :: Discussion

Discussion :: Structures

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

  2. A.

    20 bytes

    B.

    12 bytes

    C.

    8 bytes

    D.

    16 bytes

    E.

    24 bytes

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    No answer description available for this question.


Be The First To Comment