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 use of turbo c++?
What are member functions used in c++?
Why null pointer is used?
Explain method of creating object in C++ ?
Difference between Constructors and static constructors?
What is the difference between the compiler and the preprocessor?
Define linked lists with the help of an example.
What are the advantages of pointers?
What are friend classes? What are advantages of using friend classes?
What is setfill c++?
How the keyword struct is different from the keyword class in c++?
How would you find out if a linked-list is a cycle or not?