What is size of null class?

Answer Posted / alka

1 byte,whether class won't take any member variable, when
it will loaded into memory object will create which must
take minimum 1 byte of memory.... b'coz minimum size of
memory at least 1 byte

Is This Answer Correct ?    21 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are separators in c++?

821


What are the various compound assignment operators in c++?

720


Ask to write virtual base class code?

2462


Explain bubble sorting.

823


What do you understand by a pure virtual member function?

765


Explain explicit container.

848


Differentiate between late binding and early binding.

961


Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02

1704


How does work in c++?

822


What is time_t c++?

805


What is endianness?

853


Can you pass a vector to a function?

733


What can I use instead of namespace std?

861


What is the object serialization?

848


What are libraries in c++?

799