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
Write about the stack unwinding?
What do you mean by friend class & friend function in c++?
How much is c++ certification?
In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....
Is there any function that can skip certain number of characters present in the input stream?
Define a conversion constructor?
Does c++ have foreach?
What do you mean by global variables?
Write a program using display() function which takes two arguments.
Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL
How would you implement a substr() function that extracts a sub string from a given string?
Why Pointers are not used in C++?
Why iomanip is used in c++?
Write syntax to define friend functions in C++.
why and when we can declar member fuction as a private in the class?