what is 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
+ 28

what is the difference between C, C++ and C#?

6th Jun 2019, 5:43 AM
‎‎‎
19 Answers
+ 17
There are a lot of differences between these languages, considering various aspects: Application: C is mostly used for system software, C++ is multi-purpose, except very low level system software and C# is mostly used for enterprise applications and GUI/web applications. Performance: C is the superior, C++ is comparable to C, C# is slower because there is a compatibility layer called .Net framework. Ease of coding: C is hard (although it has simpler syntax), C++ is easier, and comparing to C/C++, C# is much easier. Libraries: Using C, you can use almost any system library, using C++ you can use all those C libraries (but many avoid it, if a C++ binding is available), but also well know C++ libraries like boost and Qt. Legacy: C is first appeared in 1972 (47 years ago), C++ first appeared in 1985 (34 years ago), and C# first appeared in 2000 (19 years ago) License: Depends on the implementation. Paradigm: C is procedural, C++ is both procedural and object oriented and C# is object oriented and event oriented (among others). One can continue this list by the inventor, parent company, typing discipline, platform, etc.
7th Jun 2019, 8:25 PM
J.H
+ 13
c is procedure oriented cpp is partially object oriented c# is completely object oriented
6th Jun 2019, 8:32 AM
sree harsha
sree harsha - avatar
+ 13
printf ("C is a functional programming language and it's is consider low-level ie close to machines langauge and is also known as the 'mother of programming langauge'"); cout << "C++ derives from C language with the extra features of OBJECTS . It is an OOPS language and is extremely powerful and this is the reason why it is used in game industries " << endl; Console.Writeline ("This also includes in C family however this language is a high level language and is also consider as 'java++' , unlike c and c++ this language deals with memory management nicely and this language is being raised by MICROSOFT");
7th Jun 2019, 10:38 AM
Rohit
+ 11
Just for fun: C is the third alphabet C++ is C having two plus sign C# is C having HASH sorry🙏
7th Jun 2019, 4:10 PM
Rohit
+ 10
c/c++ are rlly low level so that means they can be used for for example with talking with th graphics card or making a operating system
6th Jun 2019, 6:00 AM
Cat Sauce
Cat Sauce - avatar
+ 8
C is a procedural low-level language developed some years ago. C++ is based on C and adds object-oriented features to the language C# is just a completely different language developed by microsoft, C# is solely object oriented, and is commonly used with apps such as unity and visual studio.
6th Jun 2019, 4:04 PM
haydenki
haydenki - avatar
+ 5
You could also do the Sololearn tutorial and see for yourself.
6th Jun 2019, 9:25 AM
Sonic
Sonic - avatar
+ 5
No matter, I understand what you mean, I even thank you for the information you provided.
6th Jun 2019, 2:42 PM
‎‎‎
+ 4
I don't know about c# The difference between c and c++ C: 1.procedure oriented 2.scanf to get input 3.printf to show output 4.class does not exist C++: 1.object oriented 2.cin to get input 3.cout to show output 4.class exist 5.exception handling exist
7th Jun 2019, 4:05 AM
M.MANIVANNAN
M.MANIVANNAN - avatar
+ 4
They are chronologically in reverse order !😋
7th Jun 2019, 1:47 PM
Sanjay Kamath
Sanjay Kamath - avatar
+ 3
Uhm just saw guy explaining the same thing that I wrote so I decided to give you a more practical advice. When a person asks a question such as yours, most of the language will pretty much be the same for you (maybe except assembly and functional languages, but you want some experience before you go out for those). So what you need to think about is what you want to do rather than what language do you want to learn. For example, Tesla may use pure C to write logic for brake systems in their cars, however the autopilot feature and everything connected with it may use c++, while the app for the mechanics who repair their cars is written in c#, because performance doesn't matter there. If you don't want to limit yourself just go with C++, you will be able to program everything in the world, even your own programming language. C is a right choice if you use embedded systems alot, which is probably not the case. C# is only good if you are a a Windows user and want to dedicate yourself to Microsoft
7th Jun 2019, 9:27 PM
SvinoNek
SvinoNek - avatar
+ 3
Object orientation c++, c# C multiple formats
19th Jul 2020, 3:44 PM
Sanjay Kamath
Sanjay Kamath - avatar
+ 1
Also C# was made by Microsoft and is mostly used in game development with the game engine Unity
6th Jun 2019, 4:50 PM
Ivaylo Valchev
Ivaylo Valchev - avatar
+ 1
C++/C# Are object oriented languages. U can create and use objects. But C is a similar language. C# is the bestttt! :)
6th Jun 2019, 8:01 PM
Adem
Adem - avatar
+ 1
C#
9th Jun 2019, 3:53 PM
Рогалев Пётр
Рогалев Пётр - avatar
0
C is a procedural language Cpp is object oriented language C# is component oriented language C# was designed to work with the current Microsoft .NET framework in both client and web-based applications
6th Jun 2019, 3:55 PM
Talluri Saisumanth
Talluri Saisumanth - avatar
0
cc
7th Jul 2020, 4:18 PM
Jack
- 6
not much
7th Jun 2019, 5:33 AM
Matei Lazar