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 a tree in c++?
Who was the creator of c++?
What is buffering in c++?
Which software is used to run c++ program?
What are mutator methods in c++?
How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?
What is the use of c++ programming language in real life?
Explain mutable storage class specifier.
Does c++ support multilevel and multiple inheritances?
What it is and how it might be called (2 methods).
Where is atoi defined?
What is using namespace std in c++?
What is functions syntax in c++?
Why was c++ made?
How a new element can be added or pushed in a stack?