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 std :: endl?
What is the difference between the compiler and the preprocessor?
Explain the virtual inheritance in c++.
What is the best book for c++ beginners?
What's the most powerful programming language?
What is the basic of c++?
C is to C++ as 1 is to a) What the heck b) 2 c) 10
what Is DCS ? what i will get benefit when i did?
List the merits and demerits of declaring a nested class in C++?
How do you flush std cout?
What is ofstream c++?
What is the basic difference between C and C++?
Explain what is class definition in c++ ?
What are associate containers?
What is the two main roles of operating system?