What are the differences between a struct and a class in
C++?

Answer Posted / rajesh

shivani is wrong bec. structure is not inherited.

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Distinguish between a # include and #define.

639


What would happen on forgetting [], while deallocating an array through new?

627


What is the default width for ouputting a long integer using the insertion operator?

681


What is the use of dot in c++?

613


Explain register storage specifier.

582






Can we sort map in c++?

586


If you want to share several functions or variables in several files maitaining the consistency how would you share it?

546


Is c++ map a hash table?

560


What are iterators in c++?

587


Difference between Abstraction and encapsulation in C++?

571


What is the use of default constructor?

563


Where are setjmp and longjmp used in c++?

609


What is meant by entry controlled loop? What all C++ loops are exit controlled?

558


what is Member Functions in Classes?

608


Explain function overloading and operator overloading.

613