What is size of a empty class?
Answer Posted / ganesh
when ever an datamember is not the part of the class then default value for object size is 1 byte.
but if int a;
char c;
then it will consume 3 bytes .........
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What does obj stand for?
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
What is searching?
Which bit wise operator is suitable for putting on a particular bit in a number?
What is called array?
Does c++ have foreach?
Can a program run without main function?
Explain some examples of operator overloading?
What flag means?
What is array in c++ pdf?
What do you mean by inheritance in c++?
What is the array and initializing arrays in c++?
Which of the following is evaluated first: a) && b) || c) !
What is the type of 'this' pointer?
What is the last index number in an array of 100 characters a) 100 b) 99 c) 101