What is size of a empty class?

Answer Posted / dips

it doesnot take memory just writing class in C++
means i want to say
class d{};
no memory allocation is done here
but is this a empty class?

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the fastest c++ compiler?

587


Describe linked list using C++ with an example.

651


Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?

2016


Does c++ support multilevel and multiple inheritances?

552


Describe the syntax of single inheritance in C++?

648






What is nested class in c++?

522


Should I learn c or c++ or c#?

559


Which programming language's unsatisfactory performance led to the discovery of c++?

810


Why do we use classes in c++?

581


What is a list c++?

576


What is a float in c++?

542


How do you declare A pointer to function which receives an int pointer and returns a float pointer

681


Explain the use of virtual destructor?

626


write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num

2198


Can create new c++ operators?

575