what is the main difference between c and c++?
Answers were Sorted based on User's Feedback
Answer / shivi
c++ use modular approach
c does't use modular approach
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / aparna
C is a procedural language,but C++ is a object oriented
language.C does not support the operator overloading,but C++
support the operator overloading.In C memory allocation is
done with "malloc" statement.In C++ memory allocation is
done with "new" statement.In c memory deallocation is done
with "free" statement.In C++ memory deallocation is done
with "delete" statement.
| Is This Answer Correct ? | 7 Yes | 2 No |
Answer / anees
c does not support the c++ programme but c++ support the c
program.c++ support operator overloading but
c doesn't support operator overloading.C++ allows the
programmer to create classes, which are
somewhat similar to C structures. However, to a class can be
assigned methods, functions associated to it, of various
prototypes, which can access and operate within the class,
somewhat like C functions often operate on a supplied
handler pointer.
| Is This Answer Correct ? | 7 Yes | 2 No |
Answer / rajiv vaddi
c++ includes the concepts of oops like class,
inheritance,polymorphism,encapsulation,data obstraction etc...
these are not present in c programming language.
this will reduce the complexity of the program , while these
features are not present in c programming .
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / e.e.n.bashy
c is structural programming language while c++ is object
oriented programmimg language
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / debakanta rout
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.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / nagendra kumar.ammisetty
c is an procedure oriented programming language.
-->c++ is an object oriented programming language.
c is low level language.
-->c++ is a high level language.
c use the #include<stdio.h> for inclusion.
-->c++ use the #include<iostream.h> for inclusion of header
files.
| Is This Answer Correct ? | 7 Yes | 3 No |
Answer / e.e.n. bashy
c is object procedural language but c++ is object oriented
programming language
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / e.e.n.bashy
c is object procedural language but c++ is object oriented
programming language
| Is This Answer Correct ? | 4 Yes | 0 No |
What do you mean by public, private, protected and friendly?
what is ltti
What is the difference between and interface and an abstract class ?
4 Answers IBM, Infosys, Ness Technologies,
What is a macro? And how is a macro same as a template?
which are the 4 members functions in c++ objects that can either be declared explicitly by programmer or implementation if nt available.
What is polymorphism ? Explain with examples
Round up a Decimal number in c++.. example Note = 3.5 is as 4 3.3 is as 3
3 Answers Accenture, Cognizant, IBM,
what are the uses of C++
what is SPL in c++.
What are the 5 oop principles?
Difference between realloc() and free?
What is friend function?