This is moreso "how to start using SDL2".
These tutorials exist and are really well thought out here: https://lazyfoo.net/tutorials/SDL/
These tutorials exist and are really well thought out here: https://lazyfoo.net/tutorials/SDL/
Would you like to see a tutorial about how to do that in c89 compatible with windows, mac, Gnu/linux, consoles, etc? it'd take half million lines and 3 years.