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
Why we use #include iostream in c++?
Is there finally in c++?
Explain what are single and multiple inheritances in c++?
Is set c++?
Can non graphic characters be used and processed in C++?
What is an object in c++?
What is an undefined reference/unresolved external symbol error and how do I fix it?
What are the main features of c++?
What is stl containers in c++?
What are the uses of static class data?
How can we check whether the contents of two structure variables are same or not?
What is void pointer in c++ with example?
Explain register storage specifier.
Which is the best c++ compiler for beginners?
What is this pointer in c++?