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 / p govind rao

1) C is a structural Language, but C++ is a object oriented
language.
2)C employs top down approach, but c++ employees bottom up
approach.
3) c doesn't support operator overloading but c++ support
operator overloading.
4) In C memory allocation is done with malloc statement
whereas in C++ it is done through new keyword.
5) Also memory is deal located in C using free statement
while in C++ deal location takes place through delete.
6) c is does not provide default argument but c++ is
provide default argument.
7) c is cant support the inheritance and polymorphism etc
but c++ support the inheritance and polymorphism etc.
8) c is low level language while c++ is sn high level
language.
9)C can not support all the feature of the C++. while c++
support all the features of C.
10. C variables are DECLARED in declaration section.C++
variables are DECLARED any where in the program.
11) C does NOT have NAMESPACE for avoid name collisions.
c++ has NAMESPACE feature.

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do while loop is used?

1035


What do you mean by Encapsulation?

1091


write a program to find 2 power of a 5digit number with out using big int and exponent ?

2380


What are two types of polymorphism?

1076


What are the 3 principles of oop?

1117


What is a function in oop?

1084


What is class encapsulation?

1094


What is multilevel inheritance explain with example?

1149


Are polymorphisms mutations?

1163


What is a class in oop?

1131


which feature are not hold visual basic of oop?

2193


can inline function declare in private part of class?

4408


Can bst contain duplicates?

1193


What are the two different types of polymorphism?

1143


What makes a language oop?

1057