What is the difference between Class and Structure?

Answer Posted / pratiksha desarda

while creating variables of structure,it is compulsary to
write 'struct' keyword. and for creating object of class,
keyword 'class' is not necessary to write.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What apps are written in c++?

593


What is the difference between #import and #include?

543


Distinguish between new and malloc and delete and free().

568


What are static variables?

611


Explain the uses oof nested class?

617






Difference between pass by value and pass by reference?

589


What are formatting flags in ios class?

602


Is turbo c++ free?

613


What is the use of ::(scope resolution operator)?

640


Write about all the implicit member functions of a class?

588


How do you decide which integer type to use?

570


Differentiate between the manipulator and setf( ) function?

586


What do you mean by funtion prototype?

574


Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

779


Write about the local class and mention its use?

599