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 you know about c++?

857


How does code-bloating occur in c++?

936


Why is c++ awesome?

800


What is meaning of in c++?

913


Which software is used to run c++ program?

724


What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass

913


Write a Program for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c

1035


If a header file is included twice by mistake in the program, will it give any error?

783


How new/delete differs from malloc()/free?

847


Give example of a pure virtual function in c++?

798


What is the two main roles of operating system?

720


What is meant by entry controlled loop?

852


Why we use #include iostream in c++?

768


What does catch(…) mean?

837


C is to C++ as 1 is to a) What the heck b) 2 c) 10

827