Answer Posted / shweta iyer
Size of a class can be calculated by adding up the size of all its data members.
For example:
class student
{
char name[20]; -----> 4*20=80
int rollno[5]; -----> 2*5=10
......
}
So size of class student is 80+10=90.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the extraction and insertion operators in c++? Explain with examples.
What are maps in c++?
What is prototype for that c string function?
I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?
What's the most powerful programming language?
Why cout is used in c++?
How do I tokenize a string in c++?
Can we use pointers in c++?
What is rtti in c++?
Describe new operator and delete operator?
What is this pointer in c++?
When do you call copy constructors?
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
What is the difference between method overloading and method overriding in c++?
List down the guideline that should be followed while using friend function.