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

Write a program using display() function which takes two arguments.

609


Explain the difference between struct and class in terms of access modifier.

696


Is python better than c++?

587


What are the basic data types used in c++?

555


If dog is a friend of boy, is boy a friend of dog?

575






Describe friend function & its advantages.

715


Describe linked list using C++ with an example.

650


What is c++ map?

568


What is a tuple c++?

547


What is polymorphism and its type in c++?

594


How do you declare a set in c++?

536


What is a vector c++?

555


Do you know the problem with overriding functions?

574


What is the history of c++?

559


Can class objects be passed as function arguments?

609