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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of polymorphism?

1084


What is abstract class in oops?

974


Why is polymorphism important in oop?

1011


why reinterpret cast is considered dangerous?

2336


Please send ford technologies placement paper 2 my mail id

2057


Why is it so that we can have virtual constructors but we cannot have virtual destructors?

4808


What is property in oops?

989


What is encapsulation c#?

1013


What is an example of genetic polymorphism?

1117


How is polymorphism achieved?

1001


Is data hiding and abstraction same?

968


assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

2072


What is advantage of inheritance?

1128


Plese get me a perfect C++ program for railway/airway reservation with all details.

3839


What is encapsulation process?

1004