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 the most useful programming language?
Is c++ platform dependent?
What is stream and its types in c++?
What is the latest version on c++?
What is meant by entry controlled loop?
What is pointer to member?
What is a Default constructor?
Can a program run without main?
What is the difference between delegation and implemented-in-terms-of?
How do you invoke a base member function from a derived class in which you have not overridden that function?
How do I use turbo c++?
Explain binary search.
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
what are the iterator and generic algorithms.
Write an algorithm that determines whether or not an almost complete binary tree is a heap.