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"?

Answers were Sorted based on User's Feedback



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

Answer / ranjeet garodia

In C++, structure behaves like class like can add function,
and can use properties on class as inheritance, virtual,
etc.
while in C, structure we can have only data member but not
functions.

Is This Answer Correct ?    57 Yes 8 No

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

Answer / 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

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

Answer / sanket

In C++ structure you can add functions whereas in C
structure you cannot!

Is This Answer Correct ?    39 Yes 10 No

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

Answer / 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

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

Answer / 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

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

Answer / prathap

in c structure we can't difine anddclare functions.
but in c++ it is possible but there is no security for that
purpose we use classes instead of functions.

Is This Answer Correct ?    5 Yes 5 No

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

Answer / brainless

According to c++ standard, structure is a kind of class.
However, all members are default to "public".

Is This Answer Correct ?    5 Yes 9 No

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

Answer / b.soundarya kumari

THE C AND C++ IS DIFFERENT IN C IS EXIGUITY IN SOME MACHINCES
BUT C++ DID NOT EXIGUITY INTHAT MACHINCES.IT EXIGUITY IN
OTHER MACHINE.

Is This Answer Correct ?    0 Yes 5 No

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

Answer / sai

c is a structured programming language where as c++ object
oriented programming language

Is This Answer Correct ?    6 Yes 12 No

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

Answer / shweta iyer

In C, the header file used for input/output is #include<stdio.h>

whereas in C++, the header file used for input/output is
#include<iostream.h>

Is This Answer Correct ?    4 Yes 10 No

Post New Answer

More C++ General Interview Questions

What is auto type c++?

0 Answers  


write the code that display the format just like 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 6 5 4 3 2 1

5 Answers  


What happens when you make call 'delete this;'?

0 Answers  


Please explain class & object in c++?

0 Answers  


What is a buffer c++?

0 Answers  


How a modifier is similar to mutator?

0 Answers  


WHO DEVELOPED C++?

6 Answers  


What is null c++?

0 Answers  


What is a reference in C++?

1 Answers  


Is there a new/delete equivalent of realloc?

1 Answers  


What is virtual destructor? What is its use?

0 Answers  


What is time_t c++?

0 Answers  


Categories