What are the differences between a struct and a class in
C++?
Answer Posted / ramesh kasi
The only difference is related to the default access
specifier.
The members of a structure have public access by default.
The members of a calss have private access by default.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What are the basics of local (auto) objects?
How new/delete differs from malloc()/free?
Describe delete operator?
What are namespaces in c++?
What is a local variable?
what are the events occur in intr activated on interrupt vector table
What is iostream in c++ used for?
What is c++ vb?
How does work in c++?
What is dev c++ used for?
How is data hiding achieved in c++?
What is the protected keyword used for?
How can you say that a template is better than a base class?
What do you mean by static variables?
What is the best c++ ide?