|
|
| Programming Get help with creating your scripts/software or help others. Discuss anything relating to programming. Includes PHP, Perl, C++, ColdFusion, etc. |

06-07-2011, 10:47 AM
|
|
Member
|
|
Join Date: May 2011
Location: India
Posts: 69
|
|
Major differences between C and C++
I am currently a 2 nd year computer science and was wondering what was the big difference betweem C and C++. I am learning C++ in school right now and that's about all I know. From looking at C code, it's seems like it uses alot of different functions for printing to the screen and taking input from the keyboard. Also from what I know C++ is object oriented and C is not. The last difference I have read about C++ is that it has alot more libarys availalbe for it (like the standard templete libary). So with all this said, is learning old school C even worth it anymore? Will I be okay in terms of editing source code for linux with my C++ knowledge?
|

06-07-2011, 06:42 PM
|
|
Junior Member
|
|
Join Date: Jun 2011
Posts: 6
|
|
|
The major difference is that C++ supports the OOP concepts and C not support it
|

06-08-2011, 07:30 AM
|
|
Senior Member
|
|
Join Date: Feb 2011
Posts: 323
|
|
As C was the platform for C++ and as C++ had great influence on the languages like Java, so learning C is certainly worth your effort and time.Its like a cornerstone for your programming career.
Check out this article on the importance of C
http://www.ehow.com/about_6609125_im...language_.html
|

06-08-2011, 08:46 AM
|
|
Member
|
|
Join Date: May 2011
Posts: 37
|
|
|
1)C follows the procedural programming paradigm while C++ is a multi-paradigm language(procedural as well as object oriented)
2)In case of C, the data is not secured while the data is secured(hidden) in C++
3)C is a low-level language while C++ is a middle-level language
4)C uses the top-down approach while C++ uses the bottom-up approach
5)C++ suppC is function-driven while C++ is object-drivenorts function overloading while C does not
6)C is function-driven while C++ is object-driven
7)We can use functions inside structures in C++ but not in C.
8)The NAMESPACE feature in C++ is absent in case of C
9)The standard input & output functions differ in the two languages
10)C++ allows the use of reference variables while C does not
These are the major differences.
|

06-08-2011, 09:38 AM
|
|
Member
|
|
Join Date: May 2011
Location: India
Posts: 69
|
|
|
Thanks for give me a valuable information about C. Now I have no any confusion.
|

07-29-2011, 02:34 PM
|
|
Senior Member
|
|
Join Date: Jul 2011
Posts: 111
|
|
|
nice differents between C & C++ in the smstephan .
|

08-17-2011, 04:26 PM
|
|
Member
|
|
Join Date: Aug 2011
Posts: 96
|
|
|
C++ was based on C and retains a great deal of the functionality. C++ does not retain complete source-level compatibility with C. There are a few gotchas for C++ programmers trying to write C code, and C programmers trying to compile with a C++ compiler.
|

08-20-2011, 08:43 AM
|
|
Junior Member
|
|
Join Date: Aug 2011
Posts: 6
|
|
|
C++ was based on C and retains a great deal of the functionality. C++ does not retain complete source-level compatibility with C. There are a few gotchas for C++ programmers trying to write C code, and C programmers trying to compile with a C++ compiler.
|

09-23-2011, 05:31 PM
|
|
Senior Member
|
|
Join Date: Sep 2011
Posts: 306
|
|
|
C follows the procedural programming paradigm while C++ is a multi-paradigm language(procedural as well as object oriented)
In case of C, importance is given to the steps or procedure of the program while C++ focuses on the data rather than the process.
Also, it is easier to implement/edit the code in case of C++ for the same reason.
|

12-31-2011, 08:21 AM
|
|
Senior Member
|
|
Join Date: Dec 2011
Posts: 469
|
|
|
C++ is object oriented and C is function oriented language.Object oriented language focus on writting and make more readable and maintainable while function oriented language focus on action and events...C++ is the extention of C language...
|

01-06-2012, 04:08 PM
|
|
Senior Member
|
|
Join Date: Jan 2012
Posts: 114
|
|
|
While C is a pure procedural language, C++ is a multi-paradigm language
|

01-23-2012, 05:30 AM
|
|
Senior Member
|
|
Join Date: Nov 2011
Posts: 256
|
|
|
c++ is object oriented language. c is procedural programming paradigm .
|

01-23-2012, 10:36 AM
|
|
Member
|
|
Join Date: Dec 2011
Posts: 70
|
|
|
C is the mother of c++. I think these both are useful if you want learn. C handle mathematical calculation very well.
|

02-01-2012, 01:02 PM
|
|
Member
|
|
Join Date: Aug 2010
Location: Los Angeles, CA, USA
Posts: 43
|
|
|
Implicit Assignment from void is not allowed in C++ and in C++ it is strictly enforced that all functions must be declared before they are used.
|

02-03-2012, 07:22 AM
|
|
Junior Member
|
|
Join Date: Dec 2011
Posts: 24
|
|
Difference between C and C++
C is a core language and C++ is a object oriented language. 
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +1. The time now is 08:22 PM.
|