How size of a class can be calulated?

Answer Posted / spoorthi.hebbar

THE SIZE OF THE ATTRIBUTES OF CLASS IS THE ANSWER..

EG.
CLASS DEMO
{
INT A; //IT IS 4 BYTES LONG
INT B; //IT IS 4 BYTES LONG
}
THE TOTAL SIZE IS 8 BYTES.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c++ a low level language?

519


What is lambda expression c++?

580


How do you save a c++ program?

561


What is token c++?

586


Write a program to show polymorphism in C++?

636






how to connect with oracle 9i with server in socket program in c/c++

1852


What is size_type?

551


What is the difference between function overloading and operator overloading?

579


what are the decision making statements in C++? Explain if statement with an example?

656


What is a dynamic binding in c++?

538


When should overload new operator on a global basis or a class basis?

617


What is the difference between cin.read() and cin.getline()?

563


What is the cout in c++?

555


What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number

791


Differentiate between a template class and class template in c++?

636