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

Answer Posted / balaji

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 ?    34 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are exceptions c++?

812


What is private inheritance?

866


How many keywords are used in c++?

800


When should we use multiple inheritance?

831


Describe about storage allocation and scope of global, extern, static, local and register variables?

1030


Explain how an exception handler is defined and invoked in a Program.

892


What do you mean by translation unit in c++?

983


How should a contructor handle a failure?

936


What is unary operator? List out the different operators involved in the unary operator.

805


Explain class invariant.

796


What is java and c++?

906


Which bitwise operator is used to check whether a particular bit is on or off?

822


Is c++ platform dependent?

857


When does a 'this' pointer get created?

851


Is it possible for a member function to use delete this?

826