Sounds like what you really want is to study computer science. That should be able to explain how it actually works.

you need PERL

that is the biggest case of the “needs the camel book” if i ever saw it

I don’t understand the reference 🥲

Don’t give up, OP. It can be very rewarding to know how basic things in the C standard library such as printf() work, at a lower level.

The hardest concept when I first learned C, so many many years ago, was pointers. But understanding memory access at the low level opens up insights into computer architecture in a very powerful manner.

Sadly computers these days are very, very complex and modern operating systems and ‘frameworks’ abstract away the inner workings to such a high level that it can be hard to understand. If you really want to learn the fundamentals it might actually be a good (and fun!) exercise to work on a small microcontroller project (such as the Atmel AVR series) or an 8 or 16-bit retro system. If you don’t have real hardware it can be done via emulation.

Just my opinion, but: don’t study x86 CPU architecture until you’ve looked at others like the 6502, z80 or 68000, or I suppose ARM). Though, they’ll probably ruin you for x86 since it’s the ugliest and most confusing of the bunch, yet ironically won the “CPU wars” years ago.

Buy a little microcontroller kit. It gives you all sorts of inputs and outputs to play with, and the tiny brain is honestly much easier to understand and reason about than the monstrosity in your laptop.
Might as well learn ASM.
cries in BASIC and HTML 1.0
As in 😭 or 🤬? 😂
If it’s any comfort, I get paid six figures for my knowledge of computers and electronics. And I feel like I know fuckall about why either work.
I highly recommend this playlist where someone builds an 8-bit computer from scratch starting at digital logic circuits and ending at assembly (which is one layer below C). Beutifully explains every step of the way: youtube.com/playlist?list=PLowKtXNTBypGqImE405J25…
Building an 8-bit breadboard computer!

YouTube

This is basically a study in layers of abstraction.

At the very fundamental layer you just have a semi-conductor… Special sand that can either allow electricity to pass, or block electricity…

Then when you arrange multiple of these semi conductors in special ways, you get logic gates.

When you arrange the logic gates in special ways you can make more complex operations that can essentially do math with the electric signals.

Then you introduce even more of there bits to be able to perform many different instructions, and some form of memory that can store instructions and execute then in sequence.

With the right set of instructions you now have what is know as a “Turing machine”. Essentially a super basic computer that understands machine code.

You extend the list of instructions and, and you arrive at Assembly.

Then you decide to make a simpler more human readable language and write the assembly to translate this language to Assembly, this is basically C with a compiler.

Then you start building languages with higher and higher levels of abstraction to make them easier for humans to express their intentions with.

If you want to start at the very bottom layer and try to build some of those abstraction layers yourself to understand what’s going on. I can warmly recommend trying out https://www.nandgame.com/

NandGame - Build a computer from scratch.

An educational puzzle game. Solve a series of tasks where you build increasingly powerful components. Starts with the simplest logical components and ends up with a programmable computer.

Come to think of it… Even the semi-conductor layer is an abstraction on top electricity, and electricity in turn is an abstraction on top of electron movements…