Answer Posted / hrpynux@gmail.com
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 |
Post New Answer View All Answers
Is main a class in c++?
Is c++ a pure oop language?
What is the copy-and-swap idiom?
What do you mean by global variables?
What is set in c++?
Comment on local and global scope of a variable.
Explain the concept of dynamic allocation of memory?
How many ways can a variable be initialized into in C++?
What is the difference between interpreters and compilers?
Is python written in c or c++?
can any one help to find a specific string between html tags
which is changed to a sting..
weather.html looks (for location) is
Are c and c++ different? What is diamond problem in c++? Can non-public members of another instance of the class be retrieved by the method of the same class? Out of fgets() and gets() which function is safe to use?