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

What is the use of default constructor?

569


Explain abstraction.

616


Define token in c++.

714


Can I uninstall microsoft c++ redistributable?

606


What is a buffer c++?

583






What is a tree in c++?

563


Will a catch statement catch a derived exception if it is looking for the base class?

558


Write about an iterator class?

612


What are the three forms of cin.get() and what are their differences?

629


What is a lambda function c++?

553


Do vectors start at 0 c++?

535


write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

1510


What methods can be overridden in java?

670


What is the best way to declare and define global variables?

697


What is a wchar_t in c++?

584