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
Define a nested class.
What do the keywords volatile and mean mutable?
What does int * mean in c++?
What is the difference between a pointer and a link in c ++?
What do you mean by translation unit in c++?
How do you find out if a linked-list has an end?
What are iterators in c++?
Can the creation of operator** is allowed to perform the to-the-power-of operations?
Can c++ be faster than c?
How does list r; differs from list r();?
What is the best free c++ compiler for windows?
What is the first name of c++?
Why was c++ created?
What is a manipulator in c++?
Why we use #include conio h in c++?