0

What is the difference between c and c++?

language c and language c++

7th Jul 2017, 11:31 PM
Mehdi Orking
Mehdi Orking - avatar
3 Réponses
+ 1
One that I know of is that C++ adds classes, with operator overloading. For example, cout<< from C++ is easier to use than printf() from C (BUT, a program that #include<stdio.h> and uses printf() will be smaller than one that #include<iostream> and uses std::cout<<, so I still prefer printf() sometimes). C feels a bit restrictive. See, you don't need to make complicated classes in C++, but can still enjoy what it already has. So if you know C, you'll be happy to use C++, it doesn't add any burden, all you know how to do in C, will work in C++ too.
8th Jul 2017, 6:57 AM
lion
lion - avatar
+ 1
Is it really this hard to use google or the search bar?
7th Jul 2017, 11:35 PM
aklex
aklex - avatar
0
Aklex was right, learn how to use Google is also good and permanent character of an experienced programmer.
7th Jul 2017, 11:52 PM
Nura Programmer
Nura Programmer - avatar