What is the Difference between "C structure" and "C++
structure"?

Answer Posted / sanket

In C++ structure you can add functions whereas in C
structure you cannot!

Is This Answer Correct ?    39 Yes 10 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

2072


What are iterators in c++?

804


What is a storage class? Mention the storage classes in c++.

802


Explain operator overloading.

834


When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?

857


If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?

842


What are the extraction and insertion operators in c++?

793


Is it possible to pass an object of the same class in place of object reference to the copy constructor?

815


What is atoi in c++?

850


Define 'std'.

946


What are maps in c++?

730


Explain the isa and hasa class relationships. How would you implement each?

909


Carry out conversion of one object of user-defined type to another?

826


What is the advantage of c++ over c?

785


What is the latest version on c++?

891