What are the differences between a struct and a class in
C++?
Answer Posted / amit patel
Rsn answer is perfect write.Shivani you are wrong.
the visiblity of members default public in structure,
whereas in class its private as all know.
So please don't make myths here.
for the detail answer for explanation read the following link.
http://carcino.gen.nz/tech/cpp/struct_vs_class.php
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What is rtti in c++?
What are the vectors in c++?
What do the keywords volatile and mean mutable?
What is :: operator in c++?
What is const in c++?
Can you pass an array to a function in c++?
When do we run a shell in the unix system? How will you tell which shell you are running?
What is the keyword auto for?
Can we declare a base-class destructor as virtual?
What is the fastest c++ compiler?
How can I learn dev c++ programming?
Describe private, protected and public – the differences and give examples.
How the virtual functions maintain the call up?
Name the implicit member functions of a class.
Define macro.