r/C_Programming • u/professorCosmos92 • Jul 16 '26
Question Need a bit of help/guidance(Read Body)
My second year has started in the stream of computer science with specialisation of data science and we have DSA as a subject being done in C now the thing is I have a back in C from the first sem and I don't really know C
My teacher is one hell of a guy who will literally strip you of your izzat if you don't know an answer how do I study C so u end up on arrays and pointers fast so I can actually start DSA plus my re exam will be conducted in late December for C.
1
Upvotes
9
u/bdragon5 Jul 16 '26
Students should really remember that a lot of self study is expected still, especially the first semesters are basically the foundation. C isn't a complicated language, everything in C is hidden in other languages and need the same kind of attention as in C without explicitly mentioning it.
Additionally AI often prevents someone from understanding it and remembering it really.
Looking at someone riding a bike is not the same as riding it yourself and reading a understanding code is not the same as writing it and knowing when to do what
4
u/jonsca Jul 16 '26
What on earth did I just read?
You don't need to know the ins and outs of C to solve DSA problems. Just understand pointer arithmetic and how to use it to move around in memory and you're 75% there. The rest is learning to figure out how the problem in front of you relates to others you've seen/solved before.
4
u/mjmvideos Jul 16 '26
Read, study and do the exercises in K&R. Don’t use AI.
1
u/claypunk Jul 16 '26
the wording of your post suggests you're detached from the subject. I'd suggest you try to find the passion for it, and everything else will fall into place
If the subject is DSA, look ahead in the curriculum and towards the exam. From the list of topics, find something specific that you think is cool and see the point of, and something that you can see yourself excelling at. If you can find it, try to implement it in C. Even if you have to retype someone else's implementation and have an llm interpret it line by line for you, it's fine, as long as you end up understanding what you typed.
There's an upswell behind the idea of Data-oriented programming that overlaps with DSA and C in a meaninful ways. Lots of engaging talks, lectures and podcasts on the subject.
1
u/wsppan Jul 16 '26
Follow this Tutorial On Pointers And Arrays In C
3
u/[deleted] Jul 16 '26 edited Jul 16 '26
[removed] — view removed comment