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

Answer Posted / ranjeet garodia

In C++, structure behaves like class like can add function,
and can use properties on class as inheritance, virtual,
etc.
while in C, structure we can have only data member but not
functions.

Is This Answer Correct ?    57 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c++ iterator?

647


What are member functions used in c++?

561


Why cstdlib is used in c++?

585


What is difference between array and vector in c++?

559


What is a container class? What are the types of container classes in c++?

679






What is c++ map?

568


What it is and how it might be called (2 methods).

658


What is the difference between interpreters and compilers?

628


What is the difference between passing by reference and passing a reference?

558


What are keywords in c++?

602


How much do c++ programmers make?

566


Which is the best c++ compiler for beginners?

561


Can I learn c++ as my first language?

609


What is virtual base class?

573


What is scope resolution operator in c++ with example?

560