Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

Difference between c and c++.............!

11 like 0 dislike
Hi friends can any one tell what is the difference between c and c++?If you know give your answer as early as possible..............
asked 1 year ago by biswaskeran (70,430 points)

2 Answers

2 like 0 dislike
 
Best answer
Hello,some differences are given bellow::

1.c is procedure oriented lang. while c++ is object oriented lang.

2. in c data security is less because all function shares global data,while in c++ data security is most because of binding of data with function in a single unit called class.This feature of c++ is called encapsulation.

3.c does not deal with real world problems properly.eg. maintaining a database. while c++ deals with real world problems.

4.in c if we need to change the data structure then we have to change the coding of all the functions which are using that data,while in c++ if we need to change the data structure change only data structure of those functions which are binded with that data.

Thanks.........
answered 1 year ago by allian (14,180 points)
1 like 0 dislike
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++.
answered 1 year ago by william (91,210 points)

Related questions

11 like 0 dislike
2 answers
6 like 0 dislike
1 answer
asked 1 year ago by daneim (127,080 points)
5 like 0 dislike
0 answers