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 |
Why do while loop is used?
what is single inheritance?
what is the difference between containership and inheritence?
WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP
1.what are two type of classe members called? 2.what is data hiding and data encapsulation? 3.how do you make a class member visible aouside its class? 4.what is the default visibility of a class data member? 5.what are the advantages of oop over the structured programing?
What is oops in programming?
can inline function declare in private part of class?
why destructor is not over loaded?
How to execute business logic for only once ..?even though user clicks submit button multiple times by mistake..? (i disabled JavaScript)
what is the use of mutable key word
Write a macro for swapping integers
What are the 5 oop principles?