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 rvalue?
Can a built-in function be recursive?
What things would you remember while making an interface?
What jobs can you get with a c++ certification?
Are php strings immutable?
Is python written in c or c++?
What does flush do c++?
How can a struct in c++ differs from a struct in c?
What is vector pair in c++?
Can recursive program be written in C++?
What is pointer in c++ with example?
What is general format for a prototype?
Write a program using display() function which takes two arguments.
Can we delete this pointer in c++?
How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?