- 1

[DUPLICATE] What is the difference between c and c++?

As C is procedural programming and C++ is oops programming.. We can go to c++ by learning c, language.....

23rd Feb 2018, 1:22 PM
Saurav Sunar
Saurav Sunar - avatar
6 Answers
+ 6
C++ was born from c language so they are very similar in many ways. But since it was created both languages grew separately thought they shared a lot of things during their paths. C++ and C++ GUIs often let you use c++ as it was c, for example using c libs.. But remember c++ has its own features and therefore it's own style.. as an example in C you would write.. char text[]="hello" in C++ you would use string...
24th Feb 2018, 8:45 AM
AZTECCO
AZTECCO - avatar
+ 5
learn both 2 it's a good thing for many reasons.. 1)better distinguish them. 2)c++ may call c snippets 3)u should learn c# too you can see them as 3 levels of the same language family
24th Feb 2018, 9:13 AM
AZTECCO
AZTECCO - avatar
+ 4
With your knowledge of the c language, you won't write good c++ code because you don't know all the new features.
23rd Feb 2018, 11:21 PM
Timon Paßlick
+ 2
Umm...i can learn c++ after learning c language...
24th Feb 2018, 2:53 AM
Saurav Sunar
Saurav Sunar - avatar
+ 2
Yes, you can, I'm just saying that knowing c is not enough. I saw so many bad c++ codes of people who just sticked with the old c features. For example: char buf[100]; instead of string input;
24th Feb 2018, 7:28 AM
Timon Paßlick
+ 1
C# is for GUIs and not hardcore performance anymore, it's used for another type of tasks and it is more similar to Java than to C++. And if you learn C++, you can also cope with C snippets. I'd recommend you not to learn the old C language. Of course, you can learn C#, but it does completely different things.
24th Feb 2018, 9:17 AM
Timon Paßlick