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

Answer Posted / swetcha

C structure does not support member functions to be
declared in the structure whereas C++ structure can have
member functions declared in them

Is This Answer Correct ?    34 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List the special characteristics of constructor.

922


What is data structure in c++?

841


What is setiosflags c++?

708


What are multiple inheritances (virtual inheritance)?

802


How do I use arrays in c++?

762


Write a function to find the nth item from the end of a linked list in a single pass.

744


What are the restrictions apply to constructors and destructors?

836


Is c++ a high level language?

733


what is c++

2060


What is an operator function? Describe the function of an operator function?

845


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

861


What is a manipulator in c++?

930


Define a conversion constructor?

806


What are the operators in c++?

850


Explain the different access specifiers for the class member in c++.

742