r/C_Programming • u/yug_jain29 • Jul 08 '26
am i learning c wrong?
hi all, I'm a second year computer science student and i started learning c with a goal that I'll only learn basics so that python and other languages will be easy for me
now ive learnt - if-else, switch-case, loops, variables, operators and functions
but i ask all my questions to gpt and ask it to give me some problems too
also whenever I have a doubt I'll just think for like 5 to 10 mins after that I'll go straight to gpt again
I'm also considering to start reading the white book by Brian kernighan and Ritchie
so am i going right?
0
Upvotes
View all comments
1
u/SmokeMuch7356 Jul 08 '26
Check the links under "Resources" in the sidebar to the right (if you don't see it, go to the desktop version of this page). It has quite a few helpful links (some of which I'll repeat below).
LLMs like ChatGPT are good for summarizing (up to a point), but they're not databases or knowledge repositories or tutorials or reference manuals; they use statistical relationships between words and phrases in their training set to generate output that looks like it could have been written by a human being, but there's no guarantee that output is correct or relevant.
And, there's a lot of crap code on the Internet, so it may wind up teaching some bad habits.
Authoritative references I trust:
Whatever resource you wind up using, bookmark this page and always keep a tab open to it. If you're unsure about syntax or what arguments a library function takes or stuff like that, it will answer those questions for you. It's also pretty up-to-date and has entries for things added since the other books were published.
Once you've advanced a bit, see if you can find a copy of Sedgewick's Algorithms in C. Like the other books above it's out of date (later editions use C++ and Java), but it will show you how to use C to do useful things.