+ 1

what's the difference between C and C++?

15th Oct 2024, 12:50 AM
Link of 64
Link of 64 - avatar
2 Answers
+ 7
C is not object oriented, C++ is. C existed first. When they came up with the idea to have objects, which is a huge concept, they created C++ as a variation of C to implement all of those new features. Due to the nature of object oriented programming, the syntax is quite a bit different and the built in libraries are quite a bit different. C# evolved by trying to simplify object oriented programming. Programmers needed a simpler language to replace things like Visual Basic, Pascal, etc. C is the most efficient of them all due to being close to a bare-metal language and is often used for operating systems and device drivers, etc. C++ is potentially a better solution for applications and games.
15th Oct 2024, 1:07 AM
Jerry Hobby
Jerry Hobby - avatar
+ 2
Thank you very much
15th Oct 2024, 2:03 AM
Link of 64
Link of 64 - avatar