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 |
What is Namespace?
How do I download c++?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
What do you mean by friend class & friend function in c++?
If a function doesn’t return a value, how do you declare the function?
Carry out conversion of one object of user-defined type to another?
What is difference between class and structure in c++?
What is object oriented programming (oop)?
How are Structure passing and returning implemented by the compiler?
Comment on assignment operator in c++.
What is the main use of c++?
Define inline function