What are the differences between a struct and a class in
C++?
Answer Posted / ramesh kasi
The only difference is related to the default access
specifier.
The members of a structure have public access by default.
The members of a calss have private access by default.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Who invented turbo c++?
What are c++ stream classes?
Can java be faster than c++?
How do I tokenize a string in c++?
Why is it called c++?
Why is c++ considered difficult?
Which programming language's unsatisfactory performance led to the discovery of c++?
What are the characteristics of friend functions?
What is the difference between containment and delegation?
What are the advantages of early binding?
What is an associative container in c++?
what are the iterator and generic algorithms.
Define the operators that can be used with a pointer.
What do the header files usually contains?
What do you know about near, far and huge pointer?