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 iterators in c++?
What is the output of the following program? Why?
In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?
What are the various access specifiers in c++?
What do you mean by persistent and non persistent objects?
Can c++ do everything c can?
What is the use of this pointer in c++?
What is the use of volatile variable?
Explain the difference between class and struct in c++?
Write about the local class and mention its use?
What does obj stand for?
What are exceptions c++?
Explain overriding.
Is c++ a pure oop language?
Explain the uses oof nested class?