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
Define linked lists with the help of an example.
Will c++ be replaced?
What are vtable and vptr?
What is an orthogonal base class in c++?
Can I learn c++ without knowing c?
What is scope resolution operator in c++ with example?
What is null and void pointer?
What is a string example?
What is the full form of c++?
What is setw manipulator in c++?
Differentiate between late binding and early binding. What are the advantages of early binding?
Is std :: string immutable?
Explain Memory Allocation in C/C++ ?
Are c and c++ different?
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.