+ 7
C++ vs C
Is C++ Better than C ?
5 Antworten
+ 16
The major difference between C and C++ is that C is a procedural programming language and does not support classes and objects, while C++ is a combination of both procedural and object oriented programming language; therefore C++ can be called a hybrid language. The following table presents differences between C and C++ in detail.
Source - http://cs-fundamentals.com/tech-interview/c/difference-between-c-and-cpp.php
+ 2
They are different languages with something tools in common. Example: C++ is used to create videogames and c to different low level things.
+ 2
Even though C++ is the better version of C programming, C is still useful as a secondary since .cpp is a derividend of .c files. Kind of like orange juice compared to orange juice with extra vitamin c. Its the extra vitamin c that was added to make it better just like the '++' was added to C to make a better version of it.
+ 2
The major difference is c++ is an Object Orient programming and c is not but
You can use all the c programming libraries in c++. C programming libraries have .h extension. If you want to run these libraries in c++,you have only write 'c' before the header file and .h extension should have been removed.
For example:
In c, you write #include<stdio.h>
In c++,you have to write #include<cstdio>
similar to:
c: c++:
string.h cstring
math.h cmath
time.h ctime
stdlib.h cstdlib
People don't use cstdio library for taking input and output in c++. People use iostream but using cstdio has nothing wrong. If you already know c, you can run your program in the c++ compiler by following this rules.
0
c++