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 main difference between c and c++?

Answers were Sorted based on User's Feedback



what is the main difference between c and c++?..

Answer / ravneet dhillon

1.c supports build-in and primitive datatype whereas c++
supports both build-in and user-defined datatype.

2.no namespace are present in c. namespace are present in c++.

3.polymorphism is not possible in c.polymorphism is possible
in c++.

4.no virtual function are present in c.there are virtual
function in c++.

5.In c,we have to declare variables at the start.In c++ we
can declare variables at any point with in a block not just
at the begining.

6.operator overloading is not possible in c.operator
overloading is possible in c++.

7.c have no classes.c++ use classes.

8.multiple declaration of global variables are allowed in
c.multiple declarations of global variables are not allowed
in c++.

9.c supports top down parsing.c++ supports bottom of parsing.

10.in c we can call main() function through other
function.in c++ we can not call main() function through
other function
or
we can say main function could be recursive in c and it
can't be called recursively in c++.

Is This Answer Correct ?    1 Yes 0 No

what is the main difference between c and c++?..

Answer / jack

C is for cat
C++ is for very good cat with 2 ++.

Is This Answer Correct ?    2 Yes 1 No

what is the main difference between c and c++?..

Answer / k.senthil

c program does not support the data hiding.but c++ support
the data hiding method.

c programs divide in to smaller program that is know as
function

c++ program divide in to samller program that is known as
object.

Is This Answer Correct ?    1 Yes 0 No

what is the main difference between c and c++?..

Answer / rakesh

in c there is no OOPS concept,so there is no re-usability.
where as in C++ there is is a OOPS concept,so there is a
re-usability.

Is This Answer Correct ?    1 Yes 0 No

what is the main difference between c and c++?..

Answer / sonal

c++ is object language & c is object based language

Is This Answer Correct ?    1 Yes 0 No

what is the main difference between c and c++?..

Answer / bindu kango

c is a middle label language,while c++is a high label
language.c can't support all the function of c++ where as
c++ support all the function of c.

Is This Answer Correct ?    1 Yes 0 No

what is the main difference between c and c++?..

Answer / akrita agarwal

Operator and function overloading
Operator and function overloading is not supported by C. If a function has a name, then that function can't use in the program again. But using C++, that is possible. You can use the same function name with different arguments.

Char string limit
C can only recognizes first 32 char of string. But C++ doesn't pose this type of limitation.

Is This Answer Correct ?    1 Yes 0 No

what is the main difference between c and c++?..

Answer / kumar

they both r two different languages

Is This Answer Correct ?    1 Yes 0 No

what is the main difference between c and c++?..

Answer / vignesh

c+1=c++ becoz c postincrement by 1 gives c++

Is This Answer Correct ?    1 Yes 0 No

what is the main difference between c and c++?..

Answer / vivek kudari

C++ include private and public keys.But C doesn't.

C++ compiler can understand all the keywords that c compiler
understand.but reverse is not true.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More OOPS Interview Questions

what is the new version of c++

1 Answers   Ignou, Pramata, Satyam,


In multilevel inheritance constructors will be executed from the .... class to ... class

2 Answers   ABCO, TCS,


What normal C constructs work differently in C++?

2 Answers  


Can we have a private virtual method ?

8 Answers   Ness Technologies,


Why interface is used?

0 Answers  


what is code for call by value and call by reference?

1 Answers  


difference between abstraction and encapsulation with progarammatic eg. hi,just recently i went for an interview .The interviewer asked what is the difference between abstraction and encapsulation with programmatic eg. I gave the answer as encapsulation mean hiding the relevant data which is not useful for the user, eg a electric fan .hiding the information how the electricity is converted into machanical energy. abtraction showing only the relevant data to the user eg electric fan. it look ,its color ,it design etc only relevant data. Then the interviewer asked me, give me some programmic eg .I Said Let assume a web form having control like textbox,button etc. The user can view textbox,button etc this is the eg of abstraction and when the user click on the button how he is redirected is not known by the user is the eg of the encapsulation. Am I Correct .was the answer given by me is perfect .now i am planing to go for an another interview should i give the same answer.IF not please suggest me a better answer.with some good eg Please help

1 Answers  


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

0 Answers   Microsoft, TCS,


What is a friend function & its advantage?

2 Answers   TCS,


What language is oop?

0 Answers  


What is a superclass in oop?

0 Answers  


What is encapsulation with real life example?

0 Answers  


Categories