- 3
Difference between C and C#
What is the difference between C and C#, i have been watching lectures about C bye harvard university and tried this app sololearn, learning cs on this, and i found it to be quite different and easier from the one i am learning from harvard university. So whats the difference and which language is more modern and important, i wish to discontinue learning C and continue with C# as i founf this app to be very much intuitive then the lecture and also C# seems to be easier and more logical
2 Answers
+ 1
there are bunch of differences not going to write it down again but a few words. c# is managed code CLR manages the memory allocation and freeing. It does not compile into native machine code like c and c++ basicly. C# is a type safe language (ofc you can write unsafe code in it but the purpose to write safe code)
C# is far more modern it is also objective oriented language like java unlike c or c++. Still some crazy brain did operating system in it so I think you can do ALMOST everything in c# that you can do in C after I saw SharpOs and MOSA.
- 2
i thought that they were the same :/