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
I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.
Which software is best for coding?
What is the difference between the functions rand(), random(), srand() and randomize()?
What are the basics of local (auto) objects?
What's the order in which the objects in an array are destructed?
How a pointer differs from a reference?
How can an improvement in the quality of software be done by try/catch/throw?
What does extern mean in a function declaration in c++?
What is data structure in c++?
Explain the auto storage classes in c++.
What is c++ manipulator?
What are advantages of c++?
Why is "using namespace std;" considered bad practice?
Where can I run c++ program?
How is c++ used in the real world?