r/C_Programming • u/autistic_lover214 • Oct 15 '26
Question What is C
Hey I'm a cybersecurity student just started 2 months ago
Just wanted to understand what C is as a language why is it so fast compared to other languages like py etc..
Chatgpt and yt videos didn't help me to understand :
Does c talk to the hardware directly or through a compiler like other languages if yes why is it faster then ?
I heard something like : c makes code that puts things in a CPU in a specific places not randomly like other languages I'm sorry I don't remember exactly ik it's confusing
Do you need c for cybersecurity in the red team field
Thank you guys so much can't thank you enough for helping hope I make sense asking questions like these
View all comments
-1
u/schungx Oct 15 '26
When C was created it was designed to run on the PDP-11, so the language almost maps exactly to PDP-11 opcodes and addressing modes one-on-one. In other words, it is simply a slightly more structured form of PDP-11 assembly.
For example, the notorious C strings (terminated with a null) and arrays-as-pointers map directly to the assembly you'd write if you write a string or an array.
It turns out that, for odd reasons, the PDP-11 looks like most CPUs coming out in the following decade. Thus C became really easily portable.
And that also made Unix portable. And the rest was history.