Computers (microprocessors) use simple instructions along the lines of:
Load register A from memory location [12345]
Load register B from memory location [12346]
Add register B to register A
Move the contents of register A to memory location [12347]
To do anything useful the microprocessor has to carry out (often) millions of these very simple (machine code) instructions.
The compiler creates a version of the text that you write (your 'program') in the simple codes the microprocessor actually uses.
You don't need to write your own headers unless you are sharing either all or part of one program with another- to start you just need to include the standard headers
#include <stdio.h>
^^ this enables you to write stuff to the screen, it is quite complex and will usually call functions provided by the operating system.
There's a very good tutorial site here:
https://www.w3schools.com/c/index.php