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 |
Explain the concepts involved in Object Oriented programming.
Write an operator overloading program to write S3+=S2.
can you give real time example for polymarphism
//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(); }
WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP
what is namespace? what are the uses of namespace?
how to create thread in java?
17 Answers IBM, Infosys, Wipro,
What is the highest level of cohesion?
What is Method overloading?
When you define a integer it gets stored in which data structure?(Stack or a heap)
if u write a class do u write Assignment operator and copy constructor
char* ptr = "Rahul"; *ptr++; printf("%s",ptr); What will be the output