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

Answer Posted / jayesh pawar

1)In "C++" Structure we can specify the data and functions as public,private or protected but in "C" Structure we can't.

2)In "C" Structure Variable initialization must contains the keyword struct but in C++ not required.

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is private inheritance?

592


Can I learn c++ without learning c?

559


Name the debugging methods that are used to solve problems?

578


Do you know the use of vtable?

629


What are the benefits of operator overloading?

676






Write a program in C++ for Fibonacci series

655


Why namespace is used in c++?

598


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

564


What is the best c++ book?

706


How should runtime errors be handled in c++?

608


What is low level language in simple words?

554


Write a program to show polymorphism in C++?

621


How does atoi function work?

618


How the keyword struct is different from the keyword class in c++?

578


Are vectors faster than arrays?

567