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
Explain storage qualifiers in c++.
What apps are written in c++?
Explain operator overloading.
Differentiate between structure and class in c++.
How a new element can be added or pushed in a stack?
which operator is used for performing an exponential operation a) > b) ^ c) none
How to access a variable of the structure?
Explain differences between alloc() and free()?
Is it possible to have a recursive inline function in c++?
What are the operators in c++?
Why do we need function?
Is c++ the best programming language?
why and when we can declar member fuction as a private in the class?
Explain the uses of static class data?
What is & in c++ function?