What should I do next to prepare for learning C?
Asked by
MellowQuartz42
I'm somewhere between a beginner and beginner-intermediate programmer. I've worked with object-oriented programming in C#, but I need to learn C because my college course starts in about a month and uses it. After looking through various resources, I started reading Beej's Guide to C and have finished roughly 100 pages. I understand the general ideas, although some details haven't clicked yet.
Now I'm second-guessing my choice because I've seen people criticize that book and recommend jumping straight into projects or graphics libraries instead. I don't know what project would be appropriate, whether I should use a library such as raylib, or how to judge whether I'm ready to build something on my own. What would be a sensible next step?
Answers
Find out which textbook, compiler, and development setup your college course expects, and practice with those if possible. That will be more useful than switching resources based on random opinions. A graphics library can be fun later, but it also introduces another layer of APIs and setup; for now, a console project will let you concentrate on learning C itself.
Reply to this answer
Before choosing a project, identify the specific parts of C that are confusing you. Then make tiny programs focused on one idea at a timeโfor example, a program using arrays, one that reads a file, or one that allocates memory dynamically. You donโt need to know the entire language or prove that you can build your dream project before class starts. Learning by making small programs and consulting the course material when you get stuck is a better path than trying to master everything in advance.
Reply to this answer
Try a small text-based tic-tac-toe game. It uses ordinary C rather than requiring a graphics library: represent the board, read and validate moves, update the board, print it, and check for wins or draws. Once that works, you could add a computer opponent. Itโs a manageable project that gives you practice with arrays, functions, loops, conditionals, and input handling while also showing you what topics you need to look up.
Reply to this answer
If Beejโs book is making sense overall, you donโt need to abandon it just because someone online dislikes it. Work through the examples by typing them yourself, compiling them, changing things, and fixing the errors. You wonโt understand every detail on the first pass, and thatโs completely normal. Any preparation you do now will make the college course easier, even if the class starts with the basics.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions