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

What is data structure in c++?

1093


What are the 2 main types of data structures?

1063


Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

937


What relational operators if statements in c++?

1113


If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?

985


Explain what are single and multiple inheritances in c++?

973


Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()

1466


What is the difference between an external iterator and an internal iterator?

1047


What is setbase c++?

1051


Is python written in c or c++?

1089


What is the equivalent of Pascal's Real a) unsigned int b) float c) char

971


When one must use recursion function? Mention what happens when recursion functions are declared inline?

1130


What is the full form of stl in c++?

1131


What is fixed in c++?

984


What are the two shift operators and what are their functions?

1034