r/cprogramming • • Jul 31 '26

After one week learning C

Yeah, my anxiety is hitting pretty hard right now... lol.

0 Upvotes

17 comments sorted by

View all comments

Show parent comment

2

u/M0NSTR01969 Jul 31 '26

Thanks for the insights! I really liked the way you described C as a set of layers. It actually makes the learning curve feel a lot less intimidating.

The example with the memory addresses was especially interesting. I always thought pointers were more of an assembly language thing, so seeing how close C can get to the hardware made a lot of things click for me.

I'm still at the beginning of my C journey, taking it one step at a time, but explanations like yours definitely help. Thanks!

3

u/SmokeMuch7356 Jul 31 '26

Please note, "close to the hardware" isn't that close. It mainly means that C's abstractions (types and operations) are based on what real hardware provides; it's why you don't have arbitrary precision numerical types, it's why you don't have metadata in any object types, it's why you don't get a catchable exception when you access an array out of bounds or dereference a null pointer or stuff like that.

C is one of very few high-level languages I know of that exposes pointer types and operations, and pointers are fundamental to programming in C; you can't write useful code without them, so the sooner you understand what they are and how they work the better.

Create bookmarks to the following and have them open while you're programming:

These are not tutorials; the first is simply a handy reference, the second is the language definition (technically, the latest freely available not-official draft of the language definition). Don't expect it all to make sense immediately, but it will help answer all the "why the f..." questions you will inevitably have.

2

u/M0NSTR01969 Jul 31 '26

Thank you very much!

2

u/TheGratitudeBot Jul 31 '26

Thanks for saying thanks! It's so nice to see Redditors being grateful :)