Whats the difference between c,c++ and c#. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Whats the difference between c,c++ and c#.

as rhe tittle say. iam new in coding.

29th Jan 2017, 1:45 AM
Machiavelli
Machiavelli - avatar
3 Answers
+ 8
C is not an object oriented language, C++ and C# is. C was written by Dennis Ritchie back in 1969 and is used still, many of parts of Linux is written in C. It's a low level language meaning you have a closer toutch to asm then you do in object oriented languages, this also goes for c++ but c++ still depends on the standard libraries by windows, although packed and included in a compiled executable, this is also a very old language that dates back for more then 30 years and is used by a lot of todays software developers where control over low level parts of a system is important, hence you will have to deal with things as disposing memory and handle many things by hand that is automatic in c# such as garbage collection, the logical program flow in c++ and c# is not entirely different as c# is a derivate of the C family and pascal to mention a few, c++ and c# is both developed by Microsoft, not to be confused by the c++ by bjarne. C# is a relatively new language in comparison and is becoming cross platform and continuously getting enhanced as it's a little of Microsofts new lovechild they invest in it heavily. Some people choose to say that C# is slower then C++ but in many cases proved to be even faster, but this is relative as it depends the skill of the coder and just not writing retarded shit, c# is not running in a virtual machine unlike Java, it runs in a CIL. Theoretically, a C# compiler could generate machine code like traditional compilers of C++ or Fortran. The major differences are not as big as they used to be, you can really do everything you do in c++ in c# it's just a little more work, if there's a function you need you can just do something called pinvoke to get same functions as c++. The downside to a language like c# is that it's very restrictive on what you can do and when, There are some pro's and cons of both languages but the point is between c++ and c# the difference isn't as big as it used to be, sadly I don't use C enough to advocate the difference for it.
29th Jan 2017, 3:17 AM
Alex
Alex - avatar
0
Come difference ik is, C++ is a better version of C with all the OOP stuff. C# Runs on virtual machines similar to Java which makes them slower than C++. These are just simple differences. Someone could probably educate you more
29th Jan 2017, 2:19 AM
Dawzy
Dawzy - avatar
0
C and C++ are both important and you need both. The actual difference is... C is based on procedure and process... it focuses on the program and is a LOW-LEVEL language... it is very important. C++ is the same plus an extension of the language it is low-level and high-level and is known as a mid-level language. C uses the top down fundamentals and C++ uses bottom up... C is function driven and C++ is object oriented. Basically C++ may be a larger version of C but so many wrongly believe that it ends there... Each are used differently. C and C++ use different I/O functions. I am not too educated on C# but I know it is an extension of C like C++ and is object oriented as well.
29th Jan 2017, 11:38 AM
Michael Jordan
Michael Jordan - avatar