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
Which bit wise operator is suitable for checking whether a particular bit is on or off?
What is the benefit of c++?
Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300â€Â,â€ÂBullCart : 10â€Â) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side
How would you call C functions from C++ and vice versa?
Why can templates only be implemented in the header file?
Explain Memory Allocation in C/C++ ?
Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].
What is the return value of the insertion operator?
Write a program which uses functions like strcmp(), strcpy()? etc
Explain the concept of dynamic allocation of memory?
Explain container class.
What is array give example?
What size is allocated to the union variable?
What is the use of object in c++?
What is difference between n and endl in c++?