Do i need to learn C and C++ before learning C# and .Net?
I am not an IT graduate.
Please advise.
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sunny SharmaRank #223 · 11.1K reputationPosted Sep 4, 2013, 10:07 AM EDT
C# and C are so radically different in terms of programming paradigms. C# language is intended to be a simple, modern, general-purpose, object-oriented programming language. So It's probably better that you don't know C. The idioms are very different. My suggestion is that, if you're a non IT guy and intended to Learn C#, just start with that.
Hope it helps :)
Posted Sep 4, 2013, 1:26 PM EDT
VulpesRank #55 · 29.2K reputationPosted Sep 4, 2013, 1:56 PM EDT
However, you should be able to learn C# more quickly if you already know C/C++ because the 'control flow' statements: if/else, for, while, do, switch, break, continue, goto and return are much the same in all 3 languages.
The downside is that there will be some things which you need to 'unlearn' - for example the distinction between classes and structs is not the same in C# as it is in C++ and, unlike C++, C# doesn't support multiple inheritance.
soni verma3 reputationPosted Sep 4, 2013, 8:14 PM EDT
Johan Lennartsson14 reputationPosted Mar 9, 2020, 5:30 AM EDT