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

Answer Posted / shakti singh khinchi

In C, structures never support constructors and destructors
whereas C++ supports both of them.

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me difference between constant pointer and pointer to a constant.

608


Describe the process of creation and destruction of a derived class object?

622


What are the five basic elements of a c++ program?

559


Are vectors faster than arrays?

551


Write a Program for find and replace a character in a string.

530






What is microsoft c++ redistributable?

588


Why should you learn c++?

561


What is binary object model?

577


Define basic type of variable used for a different condition in C++?

640


What is ios in c++?

622


How can we read/write Structures from/to data files?

597


What is heap sort in c++?

570


What are the different types of polymorphism in c++?

564


What do you mean by ‘void’ return type?

583


Do you know what are pure virtual functions?

618