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 the difference between Pointer and a Reference? When you would use them?
What do you mean by early binding?
What is a custom exception?
What is the exit function in c++?
What are the basics of local (auto) objects?
What is the use of object in c++?
What language does google use?
How much do coding jobs pay?
List the merits and demerits of declaring a nested class in C++?
What are the five basic elements of a c++ program?
List the special characteristics of constructor.
Write a function to find the nth item from the end of a linked list in a single pass.