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 / anirudh sony

1. C follows the procedural programming paradigm while C++
is a multi-paradigm language(procedural as well as object
oriented)

In case of C, importance is given to the steps or
procedure of the program while C++ focuses on the data
rather than the process.
Also, it is easier to implement/edit the code in case of
C++ for the same reason.

2. In case of C, the data is not secured while the data is
secured(hidden) in C++

This difference is due to specific OOP features like
Data Hiding which are not present in C.

3. C is a low-level language while C++ is a middle-level
language (Relatively, Please see the discussion at the end
of the post)

C is regarded as a low-level language(difficult
interpretation & less user friendly) while C++ has features
of both low-level(concentration on whats going on in the
machine hardware) & high-level languages(concentration on
the program itself) & hence is regarded as a middle-level
language.

4. C uses the top-down approach while C++ uses the bottom-up
approach

In case of C, the program is formulated step by step,
each step is processed into detail while in C++, the base
elements are first formulated which then are linked together
to give rise to larger systems.

5. C is function-driven while C++ is object-driven

Functions are the building blocks of a C program while
objects are building blocks of a C++ program.

6. C++ supports function overloading while C does not

Overloading means two functions having the same name in
the same program. This can be done only in C++ with the help
of Polymorphism(an OOP feature)

7. We can use functions inside structures in C++ but not in C.

In case of C++, functions can be used inside a structure
while structures cannot contain functions in C.

8. The NAMESPACE feature in C++ is absent in case of C

C++ uses NAMESPACE which avoid name collisions. For
instance, two students enrolled in the same university
cannot have the same roll number while two students in
different universities might have the same roll number. The
universities are two different namespace & hence contain the
same roll number(identifier) but the same university(one
namespace) cannot have two students with the same roll
number(identifier)

9. The standard input & output functions differ in the two
languages

C uses scanf & printf while C++ uses cin>> & cout<< as
their respective input & output functions

10. C++ allows the use of reference variables while C does not

Reference variables allow two variable names to point to
the same memory location. We cannot use these variables in C
programming

Is This Answer Correct ?    0 Yes 0 No

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

Answer / anitha

There is no dynamic declaration in c whereas in c++ dynamic
declaration is possible.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / ashish sangal[ash don]

We cannot do overloading with C where as C++ supports both
function and operator overloading.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / amitab

++ can be considered as the Develop form of C.Its originated
from c and include the most important concept i.e. "Object
Oriented".
The Most common Difference are as follow :
1.C is Procedural Language and C++ is Procedural+Objected
Oriented.
2.C contains 32 Keywords,C++ extends it to 52 Keywords.
3.Data is not secured in C due to non-object oriented.
4.C followe top down approach while C++ follow Bottomup
approach.
5.We can use function inside structure in C++,but not in C.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / k y murthy

the main difference between c and c++ is c is a structured programming and c++ is a objected oriented programming

Is This Answer Correct ?    0 Yes 0 No

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

Answer / yesvanth

C program is for system software while C++ for application
software

Is This Answer Correct ?    0 Yes 0 No

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

Answer / princika

c contains 32 keywords and c++ contains 42 keywords............................................................................................ ago aape search kar lyeooooooooooooo okkkkkkkkkkkkkkkk ggggggggg...........................................

Is This Answer Correct ?    0 Yes 0 No

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

Answer / bharat kashid

c is procedural language
c++ is is a procedural +object oriented .
we can use function inside structured in c++,
but not in c.
c follow top down approach while
c++follow bottomup approach.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / sandeep mallah

1.c namespace feature is a absent ,c++ namesapce feature is present.
2. c does not allows reference varibles ,c++ allows reference varibles . reference varible allow 2 varible name to point to the same memory.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / heemanshubhalla

Look at here Difference Between C and C++

http://geeksprogrammings.blogspot.in/2013/06/difference-between-c-programming-and-c.html

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

what is object slicing

3 Answers   TCS,


which is best institute to learn c,c++ in ameerpet hyderabad

1 Answers  


Can we create object of interface?

0 Answers  


When a private constructer is being inherited from one class to another class and when the object is instantiated is the space reserved for this private variable in the memory??

13 Answers   HCL, Honeywell,


what is function over loading?

5 Answers  


What is virtual class and friend class?

5 Answers   IBS, Intel, Wipro,


in the following, A D B G E C F Each of the seven digits from 0,1,2,3,4,5,6,7,8,9 is: a)Represented by a different letter in abov fig: b)Positioned in the fig abov so tht A*B*C,B*G*E,D*E*F are equal. wch does g represents? C

1 Answers   IonIdea,


What is static in oop?

0 Answers  


Explain the concepts involved in Object Oriented programming.

0 Answers   Wipro,


why constructor cannt be declar virtually? why destructor cannt be overloaded?

2 Answers   Infosys,


what is a virtual class?

5 Answers   Cap Gemini, IBM, Infosys, Trinity Technologies,


//what is wrong with the programme?? #include<iostream.h> template <class first> class dd { first i; public: void set(); void print(); }; void dd< first>:: set() { cin>>i; } void dd< first>::print() { cout<<"\n"<<i; } void main() { dd <char>g; g.set(); g.print(); }

1 Answers  


Categories