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 |
Why are arrays usually processed with for loop?
What is set in c++?
What are the five types of inheritance in C++?
what is data Abstraction? and give example
147 Answers Aaditya Info Solutions, American Express, CMS, College School Exams Tests, Data Entry Operator, First Advantage, Google, HCL, IBM, Infosys, Microsoft, Mind Links, NIIT, Oracle, Pact, QBit Systems, TCS, WAYA, Wipro,
List down the guideline that should be followed while using friend function.
What is #include iostream in c++?
Can a Structure contain a Pointer to itself?
What is the use of map in c++?
How does work in c++?
How can you quickly find the number of elements stored in a a) static array b) dynamic array ?
How to change constant values?
What do you mean by volatile and mutable keywords used in c++?