Is C and C++ the same? I haven't seen a course for C in SoloLearn. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is C and C++ the same? I haven't seen a course for C in SoloLearn.

relationship of C and C++

8th Feb 2017, 3:20 PM
Zemuldo
Zemuldo - avatar
3 Answers
+ 2
Imagine the BIOS and the Surface on your Screen. While the BIOS doesn't need an object-orientated look your surface applications do so. You can compare C++ like an upgrade of ANSI C. While ANSI C is the basic, C++ gives you more possibilities to create a consumer friendly look. Microsoft Windows once have been programming in ANSI C and later they added the colorful screen version, you know by modern desktop PCs, and build this up with the object orientated programming language C++ and similar forms of it like C# and the older version C+. You can still use ANSI C for modern programs too but many use the more modern version C++ or C#. It's like you own a classic car and a modern sound system. Your car will drive without the system too but you may have more fun with it ;)
8th Feb 2017, 4:32 PM
Tom Krebs
Tom Krebs - avatar
+ 1
Hi Danstan... C and C++ are similar but they are not SAME. C++ is a increament version of C. in which the OOP concepts are added. So C++ is an OOP better than C.
8th Feb 2017, 3:25 PM
GeekyShacklebolt
GeekyShacklebolt - avatar
+ 1
In addition to the previous answers: C++ also added templates. The STL (standard template library) of C++ makes extensive use of this. This allows a style of programming called "generic programming", which is different to OOP (OOP is based on "run-time" polymorphism; generic programming is based on "compile-time" polymorphism). So C++ is not just an OOP better than C, it is TEMPLATES better than C!
8th Feb 2017, 4:45 PM
Ettienne Gilbert
Ettienne Gilbert - avatar