what is the difference between C and C++ ?
best weshis
Printable View
what is the difference between C and C++ ?
best weshis
C is a primarily procedural language. C++ is derived from C, and is capable of being object oriented and generic as well.
You might want to find a good book though ;)
Correct me if I'm wrong, but...
C is to C++ as basic is to Visual Basic.
C++ is an object-oriented language based on the C syntax and flow-control statements (i.e. 'if', 'while', 'for', etc). If you learn C++ without first learning C, you will have learned C by learning C++.
C++ is an extension to C with STL, Clases(OOP Programming).
C is slightly harder to use. There a few things in C that are not used as much in C++, e.g. C-Style Memory Allocation Functions (malloc, calloc, realloc, free) etc. Instead new/delete is used.
C is a lot easier but less flexible than the complex C++ to use, C++ is a multiparadigm language, an object orienter programming language (OOPL), procedural language and supports generic programming as well while C is a procedural language.Quote:
Originally posted by made_of_asp
C++ is an extension to C with STL, Clases(OOP Programming).
C is slightly harder to use. There a few things in C that are not used as much in C++, e.g. C-Style Memory Allocation Functions (malloc, calloc, realloc, free) etc. Instead new/delete is used.
C++ can't be compared with VB :pQuote:
C is to C++ as basic is to Visual Basic.
Burn on the stake! :pQuote:
Originally posted by agent
C is to C++ as basic is to Visual Basic.
You are wrong. Correction offered by kedaman.