What are the differences between a struct and a class in
C++?
Answer Posted / supriya
Memory is alloated on Stack using Structure whereas in class its heap , that is it wont be stored at an contagious memory location.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are default parameters? How are they evaluated in c++ function?
What is the difference between an array and a list?
How would you call C functions from C++ and vice versa?
What things would you remember while making an interface?
What are the stages in the development cycle?
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....
Who made c++?
Why do we use double in c++?
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
What is the use of bit fields in structure declaration?
Does c++ cost money?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
Is it possible to provide default values while overloading a binary operator?
Is c++ used anymore?
How do we implement inheritance in c++?