What is the difference between struct and class?
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 |
Which ide is best for c++?
What is an opaque pointer?
what is the use of Namespace in c++.
What is Virtual Inheritance?
What is the advantage of c++ over c?
Define a conversion constructor?
What is searching?
Can you sort a set c++?
structure that describe a hotel with name, address,rooms and number of rooms
explain the reference variable in c++?
What is the error in the code below and how should it be corrected?
What are the unique features of C++.