Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / satsen singh

C Structure :-
1. Only variables of different data types can be declared, functions are not allowed
2. Direct access to data members is possible
3. ‘struct’ data type is not treated as built in type – use of ‘struct’ necessary to declare objects
4. Member variables cannot be initialized inside a structure

C++ Structure :-
1. In C++ structure declaration functions can also be declared
2. The members declared in a C++ structure is public by default
3. While declaring an object the keyword ‘struct’ is omitted in C++

Is This Answer Correct ?    26 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How much is c++ certification?

1098


What is a catch statement?

1113


Explain the concept of memory leak?

1156


Is c++ a programming language?

1140


What parameter does the constructor to an ofstream object take?

1104


Why c++ is so important?

1139


What is c++ in english?

1120


Can you overload the operator+ for short integers?

1088


What are the data types in c++?

988


Which programming language is best?

1038


Can we overload operator in c++?

1089


How the endl and setw manipulator works?

1056


Carry out conversion of one object of user-defined type to another?

1092


What is runtime errors c++?

1168


Array base access faster or pointer base access is faster?

2359