- 05-18-2011 02:44 AM #1
What are big differences between C and C++
I'm new to programming though I know well about C. I don't know enough about C++.Can anybody explain what are the big points that makes them different?
- 05-19-2011 04:58 PM #2
There are a lot of differences. C++ is an improvement on C so it is a new version of C and should be used.
Here are some differences between c and C++
Implicit Assignment from void*
Freeing arrays: new[] and delete[]
You must declare functions before use
C++ has a much larger library
main Doesn't Provide return 0 Automatically
C follows the procedural programming paradigm while C++ is a multi-paradigmlanguage(procedural as well as object oriented)
In case of C, the data is not secured while the data is secured(hidden) in C++
C is a low-level language while C++ is a middle-level language
C uses the top-down approach while C++ uses the bottom-up approach
C is function-driven while C++ is object-driven
C++ supports function overloading while C does not
- 05-25-2011 07:13 AM #3WTF Groupie Array
- Join Date
- May 2011
- Location
- India
- Posts
- 109
- Thanks
- 1
- Thanked 0 Times in 0 Posts
To be basic, C++ is a higher-level version of C, more modern, flexible and powerful.C++ is purely OOPS based Language.
it is depends upon where you can use. In Embedded system C is my choice.In case of games and software means C++ is better way.
- 05-27-2011 06:23 AM #4
- 05-31-2011 06:02 AM #5WTF Groupie Array
- Join Date
- May 2011
- Location
- India
- Posts
- 109
- Thanks
- 1
- Thanked 0 Times in 0 Posts
C++ grew out of C, as it was designed to be source-and-link compatible with C.
Likewise, C++ introduces many features that are not available in C.The main difference between C and C++ is that C++ is object oriented while C is function or procedure oriented. Object oriented programming paradigm is focused on writing programs that are more readable and maintainable.
On the other hand, functional and procedural programming focus primarily on the actions and events, and the programming model focuses on the logical assertions that trigger execution of program code.
- 08-26-2011 05:45 AM #6WTF Lurker Array
- Join Date
- Aug 2011
- Posts
- 50
- Thanks
- 0
- Thanked 0 Times in 0 Posts
C++ is a direct descendant of C that retains almost all of C as a subset. C++ provides stronger type checking than C and directly supports a wider range of programming styles than C. C++ is "a better C" in the sense that it supports the styles of programming done using C with better type checking and more notational support (without loss of efficiency). In the same sense, ANSI C is a better C than K&R C. In addition, C++ supports data abstraction, object-oriented programming, and generic programming
-
- 08-28-2011 08:17 AM #7WTF Lurker Array
- Join Date
- Aug 2011
- Posts
- 87
- Thanks
- 3
- Thanked 1 Time in 1 Post



LinkBack URL
About LinkBacks
Reply With Quote


Bookmarks