difference between c and c++?

Answer Posted / muhammad asim

1.C language is easy as compare to c++.Because in one side
c++ show inheritance so another side its show the
properties of encapslution which are the contrast or weaken
point to inheritance due to encapslution.
2.In C the function pass from one funtion to another
several times while in C++ the function is hidden through
some external function.
3.C is a procedural or structural oriented language uses
ups-down approch and focus on procedure rather than data
while C++ is an object-oriented language uses down-ups
approch and focus on data rather than procedure.
4.C language uses pointer concept while there is no concept
of pointer in C++.
5.C++ is a prototype or a strick typechecking where C is
free of such things, so most programmes which is compiled
by C compiler cannot be compiled by C++ compiler.

Is This Answer Correct ?    13 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is new in c++?

670


When do we use copy constructors?

686


Why we use #include iostream in c++?

674


Explain how an exception handler is defined and invoked in a Program.

695


Is map ordered c++?

688






What are manipulators in c++ with example?

678


Why iomanip is used in c++?

738


Where and why do I have to put the "template" and "typename" keywords?

676


What is a loop? What are different types of loops in c++?

692


Is c++ free?

704


What is input operator in c++?

676


What is #include iostream h in c++?

729


How to declare a pointer to an array of integers?

730


Why is c++ is better than c?

617


Explain 'this' pointer and what would happen if a pointer is deleted twice?

701