The C Programming Language is quite possibly the most influential language of all time. It powers OS kernels like Linux, Windows, and Mac and many other low-level systems. Its syntax has inspired many other languages, including Cpp, Csharp, Java, JavaScript, Go, Perl, and more.
#programming #compsci #100SecondsOfCode
🔗 Resources
C Manuel
GCC compiler
C History
🔥 Get More Content – Upgrade to PRO
Upgrade to Fireship PRO at
Use code lORhwXd2 for 25% off your first payment.
🎨 My Editor Settings
– Atom One Dark
– vscode-icons
– Fira Code Font
🔖 Topics Covered
– C programming basics
– C pointers
– Memory safety and segmentation faults
– C syntax
– What is C used for?
– History of C
source

You can learn C in a day, but you will eventually understand pointer later
I think you should go to 300 seconds.
Amazing content as always!
I DIDNT UNDERSTAND A SHIT
This video was amazing, learned a lot.
What's hilarious about the coding community is how they've gone full circle and the only people who will understand and make use of this specific tutorial is people who already understands it
it was really amazing.. thank you
This video was amazing, learned a lot.
You probably access a different area of your mind when programming in C than when programming in Python.
It took a long time for me to realize that C is a platform-agnostic assembly code.
– Assembly has while and for loops
– Assembly can define memory layouts
– and have pointers.
C is platform-agnostic assembly code. It's not meant to be written by humans. It's a compile target.
If you have a nice high level programming language, you can express much greater concepts in much less code; it makes programming easier. And if you don't have the good fortune of having a compiler for your language, you can transpile it into C, and then you can use any of the well-established compilers.
Compilers that are great at turning the platform-agnostic C into machine code.
But that machine code your compiler emits isn't even the machine code the CPU runs. Modern CPUs have so much silicon, and memory is 99% of the bottleneck, that the CPU itself JITs your meticulously handcrafted artisanal machine code into *actual* machine code.
Even the Intel Pentium Pro was a RISC processor. It's so fast that it's rewriting your machine code to start memory read operations sooner. This way it can continue executing something else while it waits for data from the L1 caches:
– "i have to branch, but it depends on that memory read we're still waiting on. Let's just guess that the branch is taken"
– and it predicts that your if-else will take the else clause
– it changes this to a that
It's executing 200 or 300 instructions ahead, re-writing what was originally your compiled C code into something else entirely.
What you write is nowhere near what it runs. Using C is a micro-optimization. Use a better language.
Unless of course you are running on something less powerful than a wristwatch.
1:38 char does not have to be signed byte, can be unsigned and 16-bit – platform/implementation dependent like everything in C.
its a 144second video
Also little factoid some people may not know
A segmentation fault and an access violation are different names for the exact same thing on different places.
On platforms like Windows, it'll be called an access violation, while on Unix, it'll often be called a segmentation fault.
All it means is that the program tried to access memory it doesn't have access to, or tried to access it incorrectly.
This is a fucking nightmare
printFHHHHHHHHH
Hai
I want to C Tutorial for use native C++ library!
s
❤❤❤
I Love C 🙃
I love the detail of the "&&" at the end lol
This is teaching at its finest!
I like C# which covers many hard things. However, sometimes I go to lower level (with pointers an PInvokes) to achieve some special needs I want.
All Languages are Procedural.
Offended myself and other persons were not directly mentioned as founds,
But Thanks for Mentioning Me(DennisRShi) . IcaaRuuSs iPading.
i accidently typed c why did i see this
I’m genuinely thrilled I watched this!
c in 100 second
meanwhile video: 145 seconds
Me as Java person: oh cool, it looks like my language
C: may pointers introduce themselves (btw wtf is OOP?)
Me:
Great video
❤♥
I had an "A" while taking C in university, while actually I felt I was not so good in that language. But when in my work, I get a monotonous job and I give C language a chance to automate the job. I code sometime with C and voila. It just works! Even after some years, I saw again the code I wrote in C, I am still amazed. C is just magical.
This tutorial is for people who already know what C is.
We still can't C buddy.
yeah imma stick with java
Definitely it's great programming language
Long live C
I clicked thinking it'd be about the letter😔💔
I just wanna make a gba game
NEWBIE
This is a cool letter.
What do you mean it's a programming language???
I learned no any useful or fun fact in this video.
Kinda boring.
1:51
WHY is it named "malloc" when it should be "allocate memory"? 🤨🤨🤨🤨🤨
Shouldn't it be "allocm"?
Or even better, just name it "allocateMemory" 😄
"The C Programming Language" by by Brian Kernighan & Dennis Ritchie and "A Book on C : programming in C" by Al Kelley & Ira Pohl are great starting points.
I still have both from way back when.
C is simple, but profound. Mastering computing concepts in the context of C forms a strong foundation.
Remembering that C considers Zero to be in the set of Natural Numbers, and not blowing past the end of arrays are the hardest parts of C!
You forgot Holy C.
Wow, C in 100 seconds?! My brain just blue-screened trying to process that. 🤯 But seriously, thanks for this! Definitely needed a quick refresh before diving back into some fun pointer arithmetic. 😂
Errors: C compiles to assembly language, you then need the binary tool-chain of that machine and operating system, however, the C code itself is can be machine independent if written with care.
But that somehow emerges when you explain that it was used to write the MSoft code and all the other languages.
Ahhh god i wannna die . Im a beginner and its becoming fcking hard😭