Answer Posted / hrpynux@gmail.com
Structs are value type whereas Classes are reference type. Structs are stored on the stack whereas Classes are stored on the heap. Value types hold their value in memory where they are declared, but reference type holds a reference to an object memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What do you mean by vtable and vptr in c++?
Is it possible to have a recursive inline function in c++?
What does new in c++ do?
What is c++ w3school?
Is the declaration of a class its interface or its implementation?
Using a smart pointer can we iterate through a container?
Is nan a c++?
What c++ is used for?
What is the best c++ compiler for windows 10?
Distinguish between a # include and #define.
What is decltype c++?
Write a program to find the Factorial of a number
What are the four partitions in which c++ compiler divides the ram?
What programming language should I learn first?
When should we use multiple inheritance?