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 is a try block?
What is tellg () in c++?
Is c++ map a hash table?
What is the purpose of ios::basefield in the following statement?
What is the need of a destructor?
How a macro differs from a template?
What is c++ coding?
What is a static element?
Explain deep copy?
What is a c++ map?
Why is swift so fast?
Define macro.
What is the function of I/O library in C++ ?
What are compilers in c++?
What is a set in c++?