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 |
Explain one-definition rule (odr).
Write about the role of c++ in the tradeoff of safety vs. Usability?
i have given a project to create examination seating plan system in c++. so can anyone send me the answer of this question quickly??????
What is abstract keyword in c++?
Live example for static function?
How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?
What does std :: flush do?
Does std endl flush?
When to use Multiple Inheritance?
What do you understand by a pure virtual member function?
What is runtime errors c++?
What is a hash function c++?