Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# and C++ in relation to C

Tags:

c++

c

c#

I've never programmed using C or whatever but I use this site a lot so as you can imagine I run into them quite a lot. And due to the fact I don't really understand the languages this is a question Google can't really answer.

So in simple terms what are the differences between each of these languages. I assume they are related. All I know is that C++ is what brought object orientated programming to C.

like image 975
Ben Shelock Avatar asked Dec 30 '09 21:12

Ben Shelock


1 Answers

They're loosely related in terms of syntax.

In general, C++ added a huge number of capabilities to C, mostly object orientation and generic programming constructs. However, it did so in a way to try to maintain as much backwards compatibility with C as possible.

C#, on the other hand, is a very different animal. It completely abandoned all attempts at backwards compatibility, and more tries to keep a superficial, syntax similarity to C++.

However, all three languages are very unique, in practical terms. Development is done very differently in C vs. C++ vs. C#, due to the vast differences in supporting libraries and technologies.

like image 116
Reed Copsey Avatar answered Sep 29 '22 23:09

Reed Copsey