How Much Memory Will Be Allocated For An Object Of Class Given #351
How much memory will be allocated for an object of class given below?</p> <pre><code class="language-cpp"> class Test { int mark1; int mark2; float avg; char name[10]; }; </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs111 OOP Object Oriented Programming Java. It can also be found in gs gs111 OOps Objects - OOPs MCQ: Memory Allocation of Object - Quiz No.1.
How much memory will be allocated for an object of class given below?
class Test { int mark1; int mark2; float avg; char name[10]; };
22 Bytes
24 Bytes
20 Bytes
18 Bytes