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
Why is c++ awesome?
Write some differences between an external iterator and an internal iterator?
How can we check whether the contents of two structure variables are same or not?
what are the types of Member Functions?
How would you differentiate between a pre and post increment operators while overloading?
How const int *ourpointer differs from int const *ourpointer?
How can we access protected and private members of a class?
Which function should be used to free the memory allocated by calloc()?
What are mutator methods in c++?
How can an improvement in the quality of software be done by try/catch/throw?
What do you understand by pure virtual function? Write about its use?
Describe the role of the c++ in the tradeoff of safety vs. Usability?
What are default parameters? How are they evaluated in c++ function?
Program to check whether a word is a sub-string or not of a string typed
What is c++ runtime?