[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

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

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 61
Thread images: 5

File: IMG-20170514-WA0044.jpg (19KB, 720x405px) Image search: [Google]
IMG-20170514-WA0044.jpg
19KB, 720x405px
What is the difference between C, C# and C++?
>>
>>60410267
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
>>
>>60410281
They're all faster than Python.
>>
>>60410267
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
>>
>>60410281
>>60410294
not this
>>60410340
this
>>
>>60410343
Giving an honest answer is sin on g

>>60410267
Just use rust
>>
>>60410496

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
>>
>>60410551
says the python user
>>
>>60410585
/thread, except for the most powerful language in the world, which it can't be without compile time execution AST manipulation API
>>
>>60410267
>C, C# and C++
How do you pronounce these?
>>
>>60410625
Sea, Sea hashtag, and Bee minus
>>
>>60410625
Cee

Cee Sharp

Cee plus plus
>>
>>60410625
ses
ses-sharp
see-ploos-ploos
>>
>>60410625
See
See plus plus plus plus
See plus plus
>>
>>60410267

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)
>>
>>60410625
Shaved Cunt
Hairy Cunt
Double Cunt
>>
>>60410625
sheesh
chashtag
souplesse
>>
>>60410625
See
C double plus good
C puss puss
>>
>>60410625
jeez
stroustrup
stroustrup plus
>>
>>60410719

(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++.
>>
>>60410625
si
si şarp
si pılas pılas
>>
>>60410267
Same as the difference between Pascal Delphi and Java.
>>
>>60410300
>notes are a specific frequency
thats not how it works u little shit
>>
File: 795573192828.png (59KB, 1152x648px) Image search: [Google]
795573192828.png
59KB, 1152x648px
>>60410702
Took me a while
>>
>>60410625
sea

god mode

that which shall not be named
>>
>>60410300
C++ is what happens when you apply the ladder operator to the Quantum Harmonic Oscillator on the eigenstate |C>
>>
>>60410267
>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.
>>
>>60410267
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.
>>
>>60410300
>thinks he's being clever
>proves he knows dick all about music theory
self-rekt
>>
File: 1494198203029.jpg (1MB, 1280x3600px) Image search: [Google]
1494198203029.jpg
1MB, 1280x3600px
>>60412339
>C# is like having sex with a condom
WTF I H--
>with your sister
Love C# now!
>>
>>60412464
as much as I hate to validate a tripfag this is basically the best answer
>>
>>60410343
at least Java is portable
>>
>>60412553
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
>>
>>60410267
>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.
>>
>>60410551
You're the one who shits on the streets :^)
>>
>>60410281

Python's interpreter is written in C.

Your argument is invalid.
>>
>>60410625
je :DDDDDDD
je diyez :DDDDDDDDD
je arti arti :DDDDDDDDDDDDDDDDDDDD
>>
>>60410281
Python is crap and only good for writing short scripts.

>>60410267
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
>>
>>60413679
>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
>>
>>60413745
>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?
>>
>>60410267
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
>>
File: 1415614783458.jpg (35KB, 400x462px) Image search: [Google]
1415614783458.jpg
35KB, 400x462px
>>60413784
>2017 AD of the Gregorian calendar
>not manually arranging electrons in your circuits

Get out.
>>
Object
Objects
Objective
>>
>>60413092
>what is pypy
>>
>>60412553
> What is .Net Core
Just kill yourself now.
>>
>>60410834
Please advice me about Python. A lot of my friends talking about it.
>>
>>60410267
C# is java with C syntax. C/C++ is an abortion that should have never been created.
>>
>>60410267

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.
>>
>>60410267

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.
>>
>>60410267
Lisp only better than C by a small margin, unlike the other two where it is better by a big one
>>
>>60410625
see
see sharp
Z͔̳̳̠͙͉̟̼̠̰̼̫͕̕͢͞ͅạ̴̫̙͓̤̻̹̙͍͙͜͝͠l̜̼̦̖̹̹͓̭͔̻͟g̸̯̞̤͔̼̙̙̤̰̀͝͡ó̧̻̝͓̰͜͝ ͖̺̗͕͔̖̭́͘͢͠ͅs̴͈̯͍͈̟͇̙̺̱͉̕h̛̫̯̯͈͓̠̳̙͓̝͔̥́͟a̸̙̘͚͉͍͓̘͟l̴̨͚̺͎̪̬ļ̵̨̛͙̩̻̗̠̮͎̦͍̙͘ ̸̵͓̰͍̳̮͇̜͇͓̺̬̮̖̩̤̙̟̀͢͜b̢̹̜͔̰͈͕̣̰̟̘̫͇̀̕͡͝ͅę̸̣͚̮͍̣̭̤̀ ̷̡͉͍͖̤̱͓̜̹͇̟̠͇͘f̸̶͍͕̕͡͡ͅr̗̫̟͍̯̯͞͞ȩ̛̮̭̻̰̜͚̭̫̩͈̟͡ͅę̮̱͍͕̗̞͇̹̞́ ̵̢͚͕̥͈͈̺̀o̢͓̮̹͙̼͖̠̖̰̱̗̫͠ͅǹ̺̤̘̙̦̜̳̳͕̟̪̞̰̘͟ͅc̱̖͇̜̳͉̼̙̭͍͎͚͍̯̜̤͈̀ͅe͚̻̭̭̺͕͡ͅ ̷̸͇̞͚͔͕̳̘͉a̴̸̸͙̺̘̼̮̯̙̰͚̞̦̝ǵ̪͖̥̘̘̞̠̥͔̙͟͟͝a̡̤͍̦̼̗̠̻͚̪̩̜͈̤͙͇̤͓ͅí̴̧͉̘̬̠̙̠̀ͅn̴̴̨̹̹͖͍̱͕̗͚̠͔̝̰̼̖͡͠ͅͅ!̵̖͈͍̟͓͔̝͎̟͜͜͞͠
>>
>>60425659
you have autism
>>
File: Urushibara.Ruka.full.1812861.jpg (318KB, 600x1083px) Image search: [Google]
Urushibara.Ruka.full.1812861.jpg
318KB, 600x1083px
>>60425659
W... why do you not like me desu?
>>
>>60410281
Next level bait.
Thread posts: 61
Thread images: 5


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.