r/C_Programming • u/Synore • Sep 17 '26
Question I learned C, now what?
I've learned the basics of C, including loops, if statements, switch cases, structs, arrays, functions, and pointers. However, I have no idea what to actually do with them. I also learned HTML, and its purpose is very clear: I can build websites to practice my skills. But with C, I'm a bit lost. Where can I apply my C knowledge and see concrete results, similar to how I see a website with HTML? I don't really know the primary purpose of C or what I should build with it. What tools should I use to build a C program? I am looking for a practical way to apply my knowledge. Could you give me some suggestions? I have no prior experience in programming area. I want to build something with my beginner C knowledge similar to websites.
8
u/mikeblas Sep 18 '26
Not sure if i understand your question: Any code you write has concrete results -- just run it.
Another strange question. if you've learned "the bacis of C", why do you not know that an editor, compiler, and linker are the requisite tools?
Meanwhile, tThis sub's wiki has a list of lists of projects. Have you looked at any of those?
62
u/Jonatan83 Sep 18 '26
Make a simple game! https://www.raylib.com/ is a great game library that can help you do a lot of otherwise annoying stuff.
15
u/thubbard44 Sep 18 '26
Making a small web server to output some dynamic html would work. If you really want to do websites though C is not a great choice.
18
u/DauntingPear Sep 18 '26
Build some CLI tools. wc, ls, cat, etc
You could also learn how to build your own shell, or even follow https://pages.cs.wisc.edu/~remzi/OSTEP/
16
u/tastygames_official Sep 18 '26
you write computer programs to solve problems. Find a problem and solve it!
- write a program that reads in stock prices and tries to predict the next one.
- write a program that allows the user to draw pixels with the mouse and save it to a PNG file
- write a program that reads in a calendar invitation in .ics format and display the information and set a timer to play a sound and show a popup 1 hour before the appointment
8
u/thank_burdell Sep 18 '26
Write more C.
12
u/skoopsy_ Sep 18 '26
Anything with microcontrollers, sensors, embedded hardware
4
u/og_hylyx Sep 19 '26
Create a password generator
4
u/are_number_six Sep 19 '26
My first "totally on my own" project was a simple dice bag program for rpg's. Then I moved on to a simple, and useless cli-tool called the sick-ass re-hyphenator, which moves the hyphenated suffix "-ass" to become a prefix "ass-" on the word that follows it. For example, a cool-ass Camaro becomes a cool ass-camaro. Now I'm making a terminal based chat room. After I get good at sockets I plan to move to embedded, mainly for sensors and data transfer, like for remote weather stations and stuff like that. I'm fascinated with Voyager 1 and how reliable and long running it is, so that's the direction I want to go. You can build almost anything in C, so pick what you think is cool and make it.
3
u/twr14152 Sep 18 '26
Build something simple. Like a cli app. Take some input do a calculation and spit out the result. Then connect it to sqlite db. Just let you imagination run free. Basically thats it. Cli apps are the easiest and most practical from time standpoint. Build a gui app using raylib. Build a game. Start small and add to it. Mess around with system calls, run cli commands. Experimentation will trigger something in you..
3
u/rivenjg Sep 18 '26
start with making terminal programs and then learn how to make guis. you can also make games or graphical apps with libraries like raylib.
3
u/MyTinyHappyPlace Sep 18 '26
Get yourself a microcontroller, let LEDs blink, send some data on your favorite bus, build yourself a weather station
3
u/toon_link_776 Sep 19 '26
make a terminal game in ncurses (like Rogue!)
https://en.wikipedia.org/wiki/Rogue_(video_game)
https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/
3
u/PleasantImplement919 Sep 19 '26
Spinning donut 🤤
3
u/Brisngr368 Sep 19 '26
You can do anything with C, if you want something visual make a gui app or hell you could make a website in C if you really wanted to
3
u/JGhostThing Sep 19 '26
HTML is a markup language. It is easier than a programming language because it is not a programming language. It is merely meant to markup a page of content so that it can be displayed properly.
C is a full programming language. It is turing-complete, which means that it can do anything that other programming languages can do.
You can do any kind of programming that any other programming language can do.
To program in C you will typically use an IDE (Interactive Development Environment). And the only way to get better at programming is to program.
2
u/Run-OpenBSD Sep 18 '26
raylib go check it out. Easiest way to do graphics in c
2
u/TituxDev Sep 18 '26
I have a repo with some experimental exercises, there are two of then that could give You some ideas ( a bmp editor and a snake Game prototype that rus on terminal) https://github.com/TituxDev/quickies
2
u/TacoTacoTacoZoom Sep 18 '26
Lots of great examples of where to go next already in this post, so I'll just say this: It's like Lego. You've learned how to build the actual Lego bricks. Now learn how to build things out of the Lego bricks. In my experience, learning the language is maybe the first 10% (by that I mean actually becoming competent with it, not just having an understanding of the mechanics). The other 90% (and the one you'll spend the rest of your life doing) is learning how to make things well.
And with AI being more and more capable of actually writing the code, being able to actually build and architect things at a higher (perhaps more abstract) layer and being able to communicate those ideas clearly is where I suspect things are going for us engineers.
2
u/octod Sep 18 '26
Think anything done in the past 40 years on computers. Anything. You can do anything with C. If you want to have a lot of fun continuing your travel, give a look at raylib, it's a great full fledged library mainly focused on game development (you can build desktop applications as well). Have fun!
2
u/noonemustknowmysecre Sep 19 '26
Make a roguelike (You might want to play with SDL a little first).
Or... maybe even simpliler: Make a 3-card monty game. A turtle game that walks around the screen. A random-walk. Given an unknown swap cypher, compare possible words against the dictionary in /usr/share/dict/. Take a screencap, perform character recognition, and grep the screen for text. Make an embedded IoT device and strive to make it the LEAST secure device possible.
2
u/Shlabadee Sep 19 '26
Why did you learn programming to begin with? What do you want to make—what to see in this world? Start there.
2
u/Prudent-Bluebird1432 Sep 19 '26
I suggest building a clock that displays the time as an analog clock or a digital clock.
- Implement setting the time automatically and manually.
- Then add alarm features.
- Then a snooze button.
- Then have it play an audio file with a sleep feature.
- Once you get it working on a Windows or Linux computer try porting it to a Raspberry Pi or any other off the shelf single board computer.
- Add a case and hardware buttons to manipulate the features.
2
u/SimoneMicu Sep 19 '26
C is a language with no magic behind, you get what you ask for.
To make it the base of a server of html files is not the funniest task possible, there are some way to do such thing for parsing some http1.1 request and format correct response, libuv for async event handling reguardless of the platform you use and so on. For sure bring capable of handling a simple htttp server in C is a great way to learn root of the http protocol and all the stuff around, like cookies and tls encription.
If you want to proceed in a simple way with C skills and web development I suggest learning the missinf part of golang and specific standard library for networking.
If you instead are interested in C you can do some funny stuff, pass around html, css and js files to a GUI with webview.h, use as suggested around raylib to create a game or eaither in combination with clay.h a GUI in immediate mode (design like css but in C rectangle per rectangle with all the quirk around), you can either build something who interact deeply to the OS and perform background task either some protocol specific of the use case (like suggested from some other in the comment, reading isc files and send notifications about calendar appointments data).
Limit is only your desire and time to achieve a working project, take in mind not all the projects have to be completed to achieve their goal, if you want to learn how does work http protocol, you can try implementing an http message parser, either if you don't end it in a working or complete way you will learn a loto of stuff on such protocol.
2
u/realdreamer1993 Sep 20 '26
You're not yet learned C, you just learned the skin of C.
So next you learned what inside C by create program.
For example create Hello World, then multiple running output of Hello World that you can pause by pressing Space.
You press Space again and the text running again..
2
u/kchug Sep 20 '26
why dont you look at opensource projects like spdk.io and see if you can contribute
2
u/Torn_up_yarn Sep 20 '26
Write a program doing something you need (or your mother does). Start small. Simple electronics are fun. Remote control the tv for instance.
2
u/Low_Newspaper7633 Sep 21 '26
remake the linux kernel from scratch.
2
u/Snakeshyper Sep 21 '26
Make a skill based scaling game like terraria which I plan on doing in C++ and watch youtube tutorials to help explain things to you and if you don't understand ask AI to explain it to you and tell the AI to not give you the answer.
1
u/mrtlo Sep 18 '26
Back when i learned C I used an ancient version of the Allegro library to make small platformer game for DOS 32 bit... You can make whatever you want. HTML is a markup language. Text. You can make a server that hosts a HTML site on a socket.
1
u/RippedRaven8055 Sep 18 '26
Build backend servers. You html, css, js takes care of client side stuff. C programs on the backend will deal with reading from databases, performinng calculations, etc.
1
u/Specific-Housing905 Sep 18 '26
Have a look into WebAssembly.
1
u/Dazzling_Music_2411 Sep 18 '26
What operating system do you run?
1
u/P-39_Airacobra Sep 19 '26
anything, it’s the standard of the programming language world
1
u/_lps1988 Sep 19 '26 edited Sep 21 '26
Do C++. IMHO, there is no reason to start a C project while C++ is an option, it gives you all C does and plus oop, std lib, templates, move semantic, coroutines...
1
u/xarop_pa_toss Sep 19 '26
You can make some terminal tools (CLI tools) to do various things! You can also get into the amazing world of electronics and embedded programming and use small microprocessors to do all kinds of stuff (look up ESP32 or Arduino projects).
1
u/closer_2thetruth Sep 19 '26
Now learn C++
1
u/james_56f Sep 19 '26
Construye cosas que te llamen la atención o que te ilusionen crear
1
u/Skollwarynz Sep 20 '26
The main use of C (as a beginner programmer) is to use it as a study tool. I'll explain: C is a pretty low level program (not as low level as assembly but still more than python) you can for example create a simplified stack emulator this way you can learn how stack works while building a minimal GUI thought printf on terminal for example
1
u/Dramatic-Relative853 Sep 20 '26
Learn Advance C from a book on Advanced C. Take a Advanced C course in Udemy. It's not that expensive.
1
u/Total_Ad803 Sep 20 '26
Learn an api of the OS you are using
1
u/naughtius_maximus_96 Sep 20 '26
linux kernel project has a mailing list, you can look into that, i know it is alot but going into something you're not quite ready yet is a quick way to get good and figure out stuff you can actually do and be productive with it i think
1
u/septum-funk Sep 20 '26
get yourself a micro controller or make a game those are the things you can get instant visual feedback with. imo a micro controller is a more fun C challenge because you have to be resource constrained. trying to make games/game engines for a micro controller is really fun, but possibly too challenging for a new developer. the fun of a microcontroller is that you can make your C code control/play with many other things
1
u/Lumpy_Mango_ Sep 20 '26
Why did you learn programming in the first place? AI replaced programmers its 2026.
1
u/tux2718 Sep 20 '26
Implement some classic sorting and searching algorithms and optimize them to be as fast as possible. That experience will sharpen your C skills.
1
u/questionabl3_dude Sep 21 '26
No do c with classes so u can’t tell them apart
1
u/Ok_Lab3138 Sep 21 '26
If you learned C, so learn D
1
u/KermitSnapper Sep 21 '26
Make another programming language😈
1
u/ChonkerHoss Sep 22 '26
Embedded, I’d recommend writing some code for a microcontroller and learn how C compiles to assembly
1
u/CodingFishes Sep 22 '26
Also, most flavors of Linux could use a feature or 10.
1
u/mr_raven_ Sep 23 '26
Maybe try Project Euler.
1
u/TurbulentFlatworm537 Sep 23 '26
Code a compiler from scratch. Build an operating system, a database. Thats C's domain. He is king in systems.
1
u/hillbull Sep 23 '26
I'm unsure how you learned C without actually compiling and building C programs. Or am I misunderstanding when you asked "what tools should I use to build a C program?"
1
u/batshell Sep 23 '26
what i like to do is just build something, anything. im trying to be a game dev, so I like to try to Flesh out the logic of my games in c, at first using a terminal ui sort of thing to monitor what's happening, but now im using raylib. id also say to kind of specify what you want to use c for. simply using c is enough to get an idea of how other languages work under the hood, so it might also help with jumping to another language that you might need for whatever youre doing
1
u/imaami Sep 27 '26
What I did after learning C was to learn C.
-1
u/runningOverA Sep 18 '26
The upward path is :
- Learn C.
- Build a higher level scripting language using C.
- Write a web app using that Scripting Language.
You go from lower to higher and higher levels where you can see results.
0
u/Abigboi_ Sep 18 '26
Make a polynomial long division calculator
0
u/paulf8080 Sep 19 '26
C has no i/o. You need to use a library written using assembly.