What is the difference between Class and Structure?

Answer Posted / hardik savani

The Structure ara used in c and c++
but class is used only in c++ and other opps languages

Is This Answer Correct ?    23 Yes 33 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator

1739


How we can differentiate between a pre and post increment operators during overloading?

593


List the special characteristics of constructor.

724


What is the full form of ios?

552


What kind of jobs can I get with c++?

593






What are the four partitions in which c++ compiler divides the ram?

698


Describe the advantage of an external iterator.

614


Why namespace is used in c++?

598


Is c++ still in demand?

632


Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.

609


What is the error in the code below and how should it be corrected?

302


which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

715


Explain how would you handle a situation where you cannot call the destructor of a local explicitly?

537


Explain the register storage classes in c++.

668


Is map ordered c++?

592