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
How does a copy constructor differs from an overloaded assignment operator?
What is name hiding in c++?
What is a character in c++?
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
Write a Program for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c
daily Routine of father
Which is most difficult programming language?
What is setw manipulator in c++?
how to explain our contribution in the project?
How many static variables are created if you put one static member into a template class definition?
Why is c++ still popular?
What is virtual destructor ans explain its use?
Do vectors start at 0?
Explain method of creating object in C++ ?
Is c++ double?