- 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.....
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...
+ 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
+ 4
With your knowledge of the c language, you won't write good c++ code because you don't know all the new features.
+ 2
Umm...i can learn c++ after learning c language...
+ 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;
+ 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.