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

c is not object oriented but c++ is object oriented

Is This Answer Correct ?    6026 Yes 496 No

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

Answer / rajeev kumar

Actually c is a procedural programming language which
cann't face the real world problem. It has some drawback
like a global data is shared by all function and if in a
large program it is find out difficult that which function
uses which data.

On the other hand c++ is an object oriented programming
language which eliminate some pitfall of conventional or
procedural programming language. It is a concept or
approach for designing a new software. It is nothing to do
with any programming language although a programming
language which support the oops concept to make it easier
to implement.

This is the main different between c and c++.

Is This Answer Correct ?    3762 Yes 477 No

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

Answer / chetna chaudhari

in c we use scanf function as standard input function,while
in c++ we use streame cin>> for input.like this for output
in c we use printf function,while in c++ we use cout<< as a
output function.

Is This Answer Correct ?    2605 Yes 784 No

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

Answer / ketan

c is a topdown approach while c++ is bottom up approach

Is This Answer Correct ?    2018 Yes 307 No

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

Answer / sumit gupta , bangalore

In object oriented programming, the programmer can solve
problems by breaking them down into real-life objects (it
presented the programmer with an opportunity to mirror real
life). What is an object? This topic is dealt with
extensively in the chapter on ‘Objects and Classes’ but a
brief introduction is provided here.

Consider the category of cars. All cars have some common
features (for example all cars have four wheels, an engine,
some body colour, seats etc.). Are all cars the same? Of
course not. A Fiat and a Ford aren’t the same but they are
called as cars in general. In this example cars will form a
class and Ford (or Fiat) will be an object.

For those people who know C programming, it would be useful
to know the differences between C and C++. Basically C++
includes everything present in C but the use of some C
features is deprecated in C++.

*C does not have classes and objects (C does not support
OOP)
*Structures in C cannot have functions.
*C does not have namespaces (namespaces are used to
avoid name collisions).
*The I/O functions are entirely different in C and C++
(ex: printf( ), scanf( ) etc. are part of the C language).
*You cannot overload a function in C (i.e. you cannot
have 2 functions with the same name in C).
*Better dynamic memory management operators are
available in C++.
*C does not have reference variables (in C++ reference
variables are used in functions).
*In C constants are defined as macros (in C++ we can
make use of ‘const’ to declare a constant).
*Inline functions are not available in C.

Is This Answer Correct ?    1710 Yes 235 No

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

Answer / chetna chaudhari,jalgaon

in c we use #include<stdio.h>as iclusion file,while in c++
we use #include<iostreame>as inclusion file.

Is This Answer Correct ?    2021 Yes 949 No

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

Answer / k.r.sukumar

The main difference between c and c++ is that " C is a
structured programming language while C++ is an object
programming language and also we have templates in C++ that
is not the case in C

Is This Answer Correct ?    946 Yes 139 No

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

Answer / mayuri

C C++

DATA IS NOT SECURED SECURED

TOP DOWN BOTTOM-UP

FOCUS ON PROCEDURES FOCUS ON DATA

PROGRAMS ARE DECOMPOSED INTO OBJECTS
INTO FUNCTIONS

allocation is done NEW OPERATOR
with malloc statement

UNOINS AND ENUMS AVALIABLE
ARE NOT AVALIABLE

DOES NOT PROVIDE PROVIDES
DEFAULT ARGUMENTS

Is This Answer Correct ?    919 Yes 147 No

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

Answer / jayasrinivas.donavalli

The main Difference between C and C++ is C is Object Based
program.that means in C also we have Object based
Applications like Structures and Unions.
C++ is Object Oriented Language that means entire
application will be depending on Objects only.
Uses of Object oriented Program is Reusability,Increase the
effiency of the program and it gives extra security like
Private data is also be there in C++.
C++ is the Advanced version of C.
In otherwords we say c++ supports both Object based and
Object oriented Applications

Is This Answer Correct ?    959 Yes 221 No

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

Answer / uma

c++ support operator overloading but
c doesn't support operator overloading..

Is This Answer Correct ?    594 Yes 103 No

Post New Answer

More OOPS Interview Questions

what is Class in oops with example?

4 Answers   HCL,


what is the function of 'this' operator ?

7 Answers   Wipro,


Can enum be null?

0 Answers  


what is difference between thread and programme.

1 Answers   NCC,


What is difference between oop and pop?

0 Answers  






what is object slicing

3 Answers   TCS,


diff between Virtual mathod and abstract method?

1 Answers  


what is the difference between <stdio.h>and "stdio.h"?

5 Answers  


How do you define social class?

0 Answers  


How is data security provided in Object Oriented languages? ?

5 Answers  


what is the usage of clas templates

5 Answers  


Is abstract thinking intelligence?

0 Answers  


Categories