
- Forum
- Programming Talk
- C and C++
- what is the difference between c and c++?
what is the difference between c and c++?
This is a discussion on what is the difference between c and c++? within the C and C++ forums, part of the Programming Talk category; what is the difference between c and c++? C++ is object-oriented but C is not...C is a general programming language,C++ ...
-
what is the difference between c and c++?
what is the difference between c and c++?
C++ is object-oriented but C is not...C is a general programming language,C++ is an Object Oriented variant of C.... in c we use printf and scanf for input and output, in c++ we use cin and cout.......
-
C++ would have most of the advantages of an object oriented model such as data abstraction, encapsulation, reusability - inheritance, etc. which the procedural languages like C lacks...
-
01-27-2011, 12:58 AM #3
- Join Date
- Jan 2011
- Answers
- 1
in c++ generics templates and overloading concepts are there.
-
C is procedural language but c++ object oriented language.
c does not support virtual functions.
In case of C, the data is not secured while the data is secured(hidden) in C++.
C uses the top-down approach while C++ uses the bottom-up approach.
We can use functions inside structures in C++ but not in C.
The NAMESPACE feature in C++ is absent in case of C.
C++ allows the use of reference variables while C does not.
The standard input & output functions differ in the two languages
-
c++ is more advanced than c language.
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++.
-
Sponsored Ads

Reply With Quote





