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


Please Help Members By Posting Answers For Below Questions

How do I make turbo c++ full screen?

579


How does code-bloating occur in c++?

740


What is a c++ vector?

582


What is a class template in c++?

513


Is there structure in c++?

579






What does I ++ mean in c++?

575


What is meaning of in c++?

665


Can we use struct in c++?

582


When there is a global variable and local variable with the same name, how will you access the global variable?

614


What are the advantage of using register variables?

635


How to declare an array of pointers to integer?

576


Explain the use of this pointer?

630


What is the benefit of c++?

589


What is malloc in c++?

547


What is the full name of logo?

580