What is the difference between Class and Structure?
Answer Posted / rakesh kumar
structure can not be declare privately but class can be
declared public as well as private.In structure data member
and member function are public by default and in class
these are private by default
Is This Answer Correct ? | 59 Yes | 39 No |
Post New Answer View All Answers
What is scope in c++ with example?
What is the return value of the insertion operator?
Explain the differences between list x; & list x();.
Can notepad ++ run c++?
What are c++ manipulators?
Tell me what are static member functions?
Out of fgets() and gets() which function is safe to use and why?
What is c++ code?
How do you sort a sort function in c++ to sort in descending order?
What is the most useful programming language?
Should the this pointer can be used in the constructor?
What is the type of 'this' pointer? When does it get created?
Can you overload the operator+ for short integers?
Differentiate between declaration and definition.
Is it possible to write a c++ template to check for a function's existence?