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

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

here's a similarity: they are all inferior to python.

just ignore c#, it's M$'s way of trying to butt in the C world.

focus on C, then move to C++

C frequency is 16.35Hz
C# frequency is 17.32Hz
C++ is some abomination

They're all faster than Python.

C - low level instructions, close to hardware
C++ - enables a little higher levels of abstraction, OOP and shit
C# - high level of abstraction, not running on hardware directly but in runtime environment, takes care of memory alocations for you, it's just better Java

not this
this

Giving an honest answer is sin on g

Just use rust

shoo, poo in loo

one is a better Java.
one is the most powerful language in the world.
one is some archaic pointer pasta with macros

says the python user

/thread, except for the most powerful language in the world, which it can't be without compile time execution AST manipulation API

>C, C# and C++
How do you pronounce these?

Sea, Sea hashtag, and Bee minus

Cee

Cee Sharp

Cee plus plus

ses
ses-sharp
see-ploos-ploos

See
See plus plus plus plus
See plus plus

C is the basis of the other two. Very raw: very little abstraction given to you to simplify the coding experience. Blazing fast because of this, it only wastes time doing things you tell it to. This is enough rope to hang yourself if you're not aware of what you're responsible for implementing, as there are no failsafes preventing mistakes like memory leaks (you asked for memory for your program, and forgot to give it back), or security bugs (forgetting a length limit for a text field means your program probably allows arbitrary code execution by a hacker). Technically high level and human readable, only semijokingly referred to as assembly for humans. The basis of all modern languages and many operating systems.

C++: Some guy named Bjarne said "C is great, but wouldn't it be nice if we could modernize it a little, add a concept called classes and objects (if you play a video game and see a few zombies, you can understand this: what a zombie is and does is its class, actual individual zombies are instances of that class) and add zero cost abstractions (basically, no performance cost if you don't use the abstraction)?

This was very popular and provides a lot of updates for C. People generally prefer C++ to C when they need to optimize but think C is a very rough way to do it. Still lots of rope to hang yourself because of being C-like.

C#: Let me take you back to the 90s where nothing is set in stone and Microsoft is getting very rich, but also very scared.

Microsoft makes an operating system called Windows, which relies in part on lock-in to keep you using it: notice that your games only work on Windows computers, and can't be cross-loaded easily. This is intentional: the programs were turned from code into machine instructions by a process called "compiling", which is a machine specific operation: you compile to a target operating system and assembly language.

Java, another programming language, had a bright idea:

(1/2)

Shaved Cunt
Hairy Cunt
Double Cunt

sheesh
chashtag
souplesse

See
C double plus good
C puss puss

jeez
stroustrup
stroustrup plus

(2/2)

Instead of compiling Java code to assembly, they'd compile it to "java assembly". Java would then, for all machines, write a "java assembly to real assembly" compiler.

The punchline was "you write your code once, and it works on all machines, guaranteed."

Microsoft was NOT happy about this, one, because they hadnothing to compete with this, two, because it was an assault on lock-in, and three, because it was getting popular quickly.

To make a very long and interesting legal and tech battle between Java's makers and Microsoft short (google Embrace, Extend, Extinguish, and the October papers), C# was made to compete with Java.

It shares similar compiling advantages (or tried to), is garbage collected (memory returning is handled for you if you forget), and has lots of high level abstraction chugging away to help you out. Altogether a different animal than C/C++.

si
si şarp
si pılas pılas

Same as the difference between Pascal Delphi and Java.

>notes are a specific frequency
thats not how it works u little shit

Took me a while

sea

god mode

that which shall not be named

C++ is what happens when you apply the ladder operator to the Quantum Harmonic Oscillator on the eigenstate |C>

>C
A great language
>C++
A pretty good language
>C#
An abortion of a language created by Microsoft

C is like having sex without a condom with your grandma.

C# is like having sex with a condom with your sister.

C++ is like being raped by a horse through your urethra.

C++ is an "industry" abstraction, meant to be used by gigantic teams of programmers thus full of arcane complexity.

C is a systems programming abstraction without any of the Object Oriented/complexity and ungangly libraries of C++

C# is a Microsoft abstraction for running in the Windows environment

Odds are you will never program shit in C, and if you do you better know things like loop invariants in order to prove correct your programs so you don't cause a worldwide bug that leaks passwords or financial info

C: A general purpose programming language created in the year 1970. It provides a few programming primitives, such as functions, structs/unions, pointers, and basic control flow operations. It also provides a standard library that allows for some portable I/O facilities, but not much else. For many tasks, users will need to invent the wheel. Used in a lot of important libraries for encryption, networking, and other tasks, as well as in nearly every major operating system.

C++: A language originally designed as an extension to C to add object oriented programming. Now serves as an "everything including the kitchen sink" language with classes, templates, lambda captures, exceptions, namespaces, and most importantly, RAII for resource management. Used in a lot of high performance applications, particularly throughout the gaming industry. Compatible with most, but not all C code.

C#: Microsoft's answer to Java. Has a syntax that is similar to C++, but not quite. Runs on its own virtual machine called the Common Language Runtime. This virtual machine, when combined with a standard library known as the Framework Class Library, is what is commonly referred to as the .NET Framework. Unlike C and C++, C# is typically compiled to a bytecode format called Common Intermediary Language, which is later JIT compiled by the CLR into native code.

>thinks he's being clever
>proves he knows dick all about music theory
self-rekt

>C# is like having sex with a condom
WTF I H--
>with your sister
Love C# now!

as much as I hate to validate a tripfag this is basically the best answer

at least Java is portable

they're both portable. the only thing holding C# back in that regard is all the Windows specific shit in .NET

Java has similar problems if you consider Oracle's non-standard libs (like Web Start), and the Android runtime and SDK

>C
Rickety gun, prone to shooting yourself in the foot.

> C++
Kitbashes several stability improvements and safeties onto said rickety gun along with modifications to its core frame that boosts its power output. Harder to shoot yourself in the foot, but when you *do*, you blow your leg clean off. Safety features often conceived a hassle and removed by previous owners.

> C#
Takes away the gun.

You're the one who shits on the streets :^)

Python's interpreter is written in C.

Your argument is invalid.

je :DDDDDDD
je diyez :DDDDDDDDD
je arti arti :DDDDDDDDDDDDDDDDDDDD

Python is crap and only good for writing short scripts.

C, at least in its inception, has no abstractions.
C++ introduces OOP and is designed to be more OS agnostic, building in commonly used OS features and more advanced language constructs (anonymous types, lambdas, filter-map-reduce, etc.) into the language since C++11.
C# is basically Java except not shit, and adopts the same advanced language constructs from Python and F#, placing them in a more organized and concrete language.
Basically "Python for people who actually have to architect programs"

C - you actually have to know how shit works
C++ - you know how shit works
C# - you don't know shit

>C
>has no abstractions
what is a struct? what is a pointer? what is an array? what is a +? what are chars?
Just quit programming it's not for you

>autism
Next thing I know you're going to tell me that binary is an abstraction based on a sigmoidal activation function on analog signals.
Go fuck yourself.

Why didn't you include HolyC?

C: 5/10 loyal gf that will do whatever you want
C++: -INF/10 absolutely disgusting ham-planet that will lie about everything and when you do something she doesn't like, she'll spit hundreds of pages of nonsense
C#: don't even bother

>2017 AD of the Gregorian calendar
>not manually arranging electrons in your circuits

Get out.

Object
Objects
Objective

>what is pypy

> What is .Net Core
Just kill yourself now.

Please advice me about Python. A lot of my friends talking about it.

C# is java with C syntax. C/C++ is an abortion that should have never been created.

C is the original.
C++ is what happens when you continuously bolt things onto the language for 3 decades. It's a hideous and powerful mess that barely resembles C any more.
C# is nothing like C or C++. It is Java with some additional syntactic fluff.

C is the rusty old car that you have to drive in a certain way or you'll crash.
C++ is the same car, but it has been modified and repaired over many years to seem somewhat like a decent car.
C# is a car that you bought to impress that girl you like.

Lisp only better than C by a small margin, unlike the other two where it is better by a big one

see
see sharp
Z͔̳̳̠͙͉̟̼̠̰̼̫͕̕͢͞ͅạ̴̫̙͓̤̻̹̙͍͙͜͝͠l̜̼̦̖̹̹͓̭͔̻͟g̸̯̞̤͔̼̙̙̤̰̀͝͡ó̧̻̝͓̰͜͝ ͖̺̗͕͔̖̭́͘͢͠ͅs̴͈̯͍͈̟͇̙̺̱͉̕h̛̫̯̯͈͓̠̳̙͓̝͔̥́͟a̸̙̘͚͉͍͓̘͟l̴̨͚̺͎̪̬ļ̵̨̛͙̩̻̗̠̮͎̦͍̙͘ ̸̵͓̰͍̳̮͇̜͇͓̺̬̮̖̩̤̙̟̀͢͜b̢̹̜͔̰͈͕̣̰̟̘̫͇̀̕͡͝ͅę̸̣͚̮͍̣̭̤̀ ̷̡͉͍͖̤̱͓̜̹͇̟̠͇͘f̸̶͍͕̕͡͡ͅr̗̫̟͍̯̯͞͞ȩ̛̮̭̻̰̜͚̭̫̩͈̟͡ͅę̮̱͍͕̗̞͇̹̞́ ̵̢͚͕̥͈͈̺̀o̢͓̮̹͙̼͖̠̖̰̱̗̫͠ͅǹ̺̤̘̙̦̜̳̳͕̟̪̞̰̘͟ͅc̱̖͇̜̳͉̼̙̭͍͎͚͍̯̜̤͈̀ͅe͚̻̭̭̺͕͡ͅ ̷̸͇̞͚͔͕̳̘͉a̴̸̸͙̺̘̼̮̯̙̰͚̞̦̝ǵ̪͖̥̘̘̞̠̥͔̙͟͟͝a̡̤͍̦̼̗̠̻͚̪̩̜͈̤͙͇̤͓ͅí̴̧͉̘̬̠̙̠̀ͅn̴̴̨̹̹͖͍̱͕̗͚̠͔̝̰̼̖͡͠ͅͅ!̵̖͈͍̟͓͔̝͎̟͜͜͞͠

>Anime
Hi.
Go to hell.

you have autism

W... why do you not like me desu?

Next level bait.