+ 7

C++ vs C

Is C++ Better than C ?

16th Nov 2017, 12:46 AM
Kai
Kai - avatar
5 odpowiedzi
+ 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
16th Nov 2017, 12:53 AM
qwerty
qwerty - avatar
+ 2
They are different languages with something tools in common. Example: C++ is used to create videogames and c to different low level things.
16th Nov 2017, 4:21 AM
Iago
Iago - avatar
+ 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.
18th Nov 2017, 3:35 AM
JoLynn Lowe
JoLynn Lowe - avatar
+ 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.
9th Jul 2020, 6:14 AM
The future is now thanks to science
The future is now thanks to science - avatar
0
c++
18th Nov 2017, 9:40 PM
dsmrphn
dsmrphn - avatar