What is the difference between c&c++?

Showing Answers 1 - 30 of 30 Answers

kiranmayi

  • Oct 21st, 2005
 

C is a proceedural language and C++is oop

mchauhan

  • Oct 22nd, 2005
 

C make use of structures, function concepts, pre-processor statements,pointer and some build in function etc. to develop application and program.Where as C++ is superset of C and has more object based concepts such as class, overloading, Inheritance, polymorphism etc. apart from mentioned earlier C concepts, which gives more flexibility in developing object oriented application/GUI/CGI etc. Mukesh Chauhan ?Bangalore

  Was this answer useful?  Yes

rajesh

  • Nov 18th, 2005
 

C++ is object oriented but c is not object oriented.c is a?procedural language but C++ is not a?procedural language.

ajay kumar verma

  • Nov 23rd, 2005
 

C++ is a object oriented programing language and C is not a object oriented language. C++ was more familiar with compereson to c,and gives more solutions of all kinds of programing needs like inheritence, opreator overloadind, and also more sharpness. and C is a middle level language becouse it combines elements of high level language with the functionality of an assembly language, also C is a structured language. C++ gives as a object oriented approch it consist of inheritence, reusabilty, virtual function .

anandh

  • Dec 3rd, 2005
 

c is top down approch. Whereas c++ is bottom down approach

Dhruw Gupta

  • Dec 8th, 2005
 

C has no data security while c++ has the security of data,anyone can access the data of c programe while in c++ only member of class can access the data ,outsider can't acess the data

  Was this answer useful?  Yes

RAJESH

  • Dec 10th, 2005
 

Here u written C++ is a "Bottom down appraoch",It's "Bottom up approach" .thank u.

sarika

  • Dec 12th, 2005
 

c is Structual and top-down approch where as c++ is objectoriented lang.

  Was this answer useful?  Yes

visekhar

  • Jan 18th, 2006
 

There are many differences between c and c++ but some of the important are 1.A small but potentially important difference between c and c++ is that in c a character constant is automatically elevated to and integer whereas in c++ it is not.2.In c we can declare the global variable several times eventhough it is a bad programming concept but in c++ it is an error.3.Another subtle difference between c and c++ is that in c++ all functions must be prototyped.Remember in c prototypes are recommended but technically optional.

  Was this answer useful?  Yes

narayana

  • Apr 6th, 2006
 

c++ have all the functions of c in addition to that c++ have some special functions like Manipulators , constructors,destructors ..........

shweta

  • Apr 25th, 2006
 

it's not like c++ has functions but c dosen't have it.

c also has functions.

  Was this answer useful?  Yes

ahuja

  • Aug 29th, 2006
 

i think c++ is bottom-up approach not a bottom down approach

it is right or not?

  Was this answer useful?  Yes

1.In c++ local variables can be declared anywhere with in block.in c, they must be declared at the start of block before any "action" statements occurs.

2.In c++ all functions must be prototyped.This is option in c.

3.in c charactor constant is automatically elevated to an integer.In c++ it is not.

4.in c,although it is unusual,you can call main() from within your program,This is not allowed in c++.

  Was this answer useful?  Yes

deepam chakraborty

  • Oct 15th, 2006
 

there are ofcourse many differences between c and c++, but another main advantage of using c++ over c is that it provides polymorphism or you may call data security in other sence which we cannot be able to find in C.

  Was this answer useful?  Yes

NAVEEN

  • Nov 24th, 2006
 

  DIFFERENCE B/W C&C++.

                 C                                                 C++

1.C IS PROCEDURE ORIENTED LANGUAGE.  1.C++OBJECT ORIENTED PROGRAM

2.NO FUNCTION OVERLOADING.                  2.FUNCTION OVERLOADING.

3.NO OPERATOR OVERLOADING.                  3.OPERATOR OVERLOADING.

4.NO VIRTUAL FUNCTION.                         4.VIRTUAL FUNCTION.

5.NO CLASSES.                                       5.CLASSES.

6NO INHERITANCE.                                  6.INHERITANCE.

7.NO POLYMORPHISM.                             7.POLYMORPHISM.

8.NO CONSTRUCTOR/DESTRUCTOR.           8.CONSTRUCTOR/DESTRUCTURE.   

  Was this answer useful?  Yes

Proxy

  • Dec 13th, 2006
 

Hi. Please review your answer.And if you are confident please give us more explanation on it.Thanks

  Was this answer useful?  Yes

Deepak G M

  • May 31st, 2007
 

I have no issues with the differences others have mentioned.
But there is a small misunderstanding about C++. C++ is not a object oriented language instead C++ supports object oriented programming. An object oriented language would be one that has its entry point contained in a class. Java is a completely object oriented language since its main function is inside the class.

  Was this answer useful?  Yes

Akhilesh Tomar

  • Aug 23rd, 2007
 

1. C is procedural lang while C++ is OPPS based
?2. C++ is flexible in declaration of variables. You can define them any where when u need.
3. Casting is allowed in C++ (int p=int(square(12));
4. C++ use top-down approach while C bottom-up
5. Memory allocation/deallocation is done by two keywords "malloc" and "free" in C
while we use "new" and "delete" in C++

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions