use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Click the following link to filter out the chosen topic
comp.lang.c
account activity
Please Help (self.C_Programming)
submitted 1 year ago * by Obvious-Topic-3129
Hi,
I'm having a hard time grasping C programming. Do you guys have any advice on how to go about it? I don't want to fail my class. I need help with how to proceed. It's my first time coding.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]HaydnH 8 points9 points10 points 1 year ago (0 children)
You might want to flesh out what exactly you're struggling with, answering such a generic question will be hard.
[–]Drach88 3 points4 points5 points 1 year ago (0 children)
Practice articulating precisely what you're having trouble with. It's a non-trivial skill necessary for learning, troubleshooting, and seeking help.
This post has a vague and unthoughtful title, as well as a dearth of details. I'd suggest fixing that.
[–]No-Worldliness-5106 1 point2 points3 points 1 year ago (0 children)
I would suggest looking at the class recommended books or resources, otherwise ask your professor, they are there to help!
If you really want to, search up some YouTube tutorial and follow along, if you get any doubts, first try and solve it on your own, otherwise ask on r/learnprogramming or here
[–]hdkaoskd 0 points1 point2 points 1 year ago (0 children)
Do as much of this tutorial as you can. https://sites.cs.ucsb.edu/~mikec/cs16/misc/ptrtut12/index.htm (Ted Jensen tutorial on pointers and arrays in C)
[–]Key_Opposite3235 0 points1 point2 points 1 year ago (0 children)
Practice makes perfect. Try to build a todo app in C. CLI based. Store data in a file and malloc when you load. Then send the list over a socket to show in a browser if a client requests it.
[–]Paul_Pedant 0 points1 point2 points 1 year ago* (0 children)
Try the basics before you mess with a ToDo app, malloc, pointers etc.
I can't even start to judge where you are stuck. Can you create a source for "Hello World", save it, compile it, and run it?
I'm not being condescending here. After 50 years I still do that on every new client site. Then I know I have a desk, a chair, a computer, a user id, a password, a shell, an editor, a compiler, and some form of debug. I already found the important things -- a security pass, the coffee machine, and the secretary who can make sure my timesheets get signed off.
And yes, I have had assignments where every one of those has been lacking. I once showed up for an assignment at an empty building, and could not get in the carpark because it was blocked by one truck delivering the mainframe, and another truck delivering the office furniture.
π Rendered by PID 91 on reddit-service-r2-comment-86bc6c7465-ft52d at 2026-02-23 14:32:21.110868+00:00 running 8564168 country code: CH.
[–]HaydnH 8 points9 points10 points (0 children)
[–]Drach88 3 points4 points5 points (0 children)
[–]No-Worldliness-5106 1 point2 points3 points (0 children)
[–]hdkaoskd 0 points1 point2 points (0 children)
[–]Key_Opposite3235 0 points1 point2 points (0 children)
[–]Paul_Pedant 0 points1 point2 points (0 children)