This a good starting point for you as beginner:
https://openclassrooms.com/fr/courses/19980-apprenez-a-programmer-en-c?status=publishedC and SDL is what you need to learn algorithmic basics for games. Follow the steps to tutorials, then try to make a small game with that.