r/cprogramming • u/SubstantialCase3062 • Jan 04 '26
Any c project ideas for noobs to practice
With Description to what to do so I can Solidify my knowledge
19
Upvotes
r/cprogramming • u/SubstantialCase3062 • Jan 04 '26
With Description to what to do so I can Solidify my knowledge
5
u/Gingrspacecadet Jan 04 '26
This is how I learnt C:
https://viewsourcecode.org/snaptoken/kilo/
2
u/grimvian Jan 04 '26
A calculator or more advanced, a text adventure...
2
u/h3llll Jan 04 '26
based on your current level:
if you're a complete beginner you need to discover c's features first, stay away from memory so i recommend something like a program that prints the contents of a file and can take multiple files as arguments and concatenate them,
or you can make a simple calculator shell.
note that if you're into game development, it's nice to use libraries like raylib and try to replicate their examples by reading, raylib will boost your progress, though i would recommend sdl3 more since it's much more flexible and if youre into graphics programming/will make graphics apps sdl3 is much more flexible than raylib
once youre familiar with the syntax and raw standard library of c if you learned other languages before, you can start making more complex things, try to use other libraries, try making a program that separates files into words or try to make flappy bird using a media library of your choice. you'll have to make mistakes and solve them and read documentation on your own. raylib's documentation is really simple and sdl's documentation is amazing so they're good choices
some projects that you can set as goals to create (somewhat hard):
text editor (graphical or tui, your choice, graphical is easier though)
toy compiler/interpreter (i'd recommend you read Make Your Own Lisp by Daniel Holden)
http server (i recommend you read Beej's Guide to Network Programming)
though it might sound boring i would recommend you learn computer science basics first before learning c since c assumes too much, i don't have any resources to point you to since i learned by hanging around in discord servers but i'm sure you'll be able to figure it out.
one last note if you're new to software development in general, projects mostly go like this:
creation and writing whatever comes up in your brain -> cleaning up your past self's stupid mistakes and fixing bugs -> rinse and repeat until you're ready -> polish your code and heavily test
most of everyone including me can feel stuck at the second step, which is normal and where the most learning happens, your brain naturally links mistakes and learning with suffering and pain, but if you power through it for a few project and ignore the pain (SPECIFICALLY WITH C) you'll love it.
good luck and have fun
2
u/tobdomo Jan 04 '26
Advent of code
2
u/dariusbiggs Jan 04 '26
Whenever you start a new programming language there are a couple of simple projects you can build that cover big portions of the language.
What those projects are is up to you and you should pick some based upon your experience and interests.
For me they also give me the opportunity to explore the testing, build, and CICD processes.
Pick a CLI tool, like md5sum (this is what i use), cp, mv, mkdir, etc.
Pick some simple web server or network communication program like an echo server, or a simple web server with prometheus metrics.
Good luck
2
u/sol_hsa Jan 04 '26
If you're into math and/or hate yourself, projecteuler.net
1
u/Specific_Tear632 Jan 05 '26
https://old.reddit.com/r/dailyprogrammer/
1
u/RoughDesigner6510 Apr 19 '26
I looking for this too. I keep hearing about leetcode, so wondering about that in Opensource projects to contribute to for learning.
0
u/Hot-Hovercraft-1381 Jan 04 '26
If you're at the very beginning of C, then start by familiarising yourself with how the C language works, what compilation is and what steps compiler takes to create the Executable file.
Then, after Hello World program, learn the basics of C, like taking input from the user, and calculations etc.
Once you've completed the basics, move to more advanced topics, like pointers, files linking, raw data extraction (using pointers, it will also teach you a ton about data types in C, pointer arithmetic, tyoe casting etc).
Once you've understood the concept of pointers well, then move towards structures, unions, bit fields, bit manipulation, scope specifiers and other more neiche concepts of C.
0
u/TarnishedVictory Jan 04 '26
An address book.
0
u/Timberfist Jan 04 '26
Sudoku Solver