r/C_Programming • u/One-Type-2842 • Jun 02 '26
Question [recommendation] Learning C for Low-Level Concepts
I have prior experience in Python, I made Useful programs that are for me, such as, file handling..
I have learned some basics of C. Now, What shall I practice to create something? Should I program something similar that I made in Python?
Since, I am Learning C for Understanding Low Level. It will be beneficial for me to adapt into my career in Cyber Security/ Hacking, Malware Creation, Understanding Linux (UNIX is based on C).
And What Articles shall I read related to my career?
29
Upvotes
•
u/AutoModerator Jun 02 '26
Looks like you're asking about learning C.
Our wiki includes several useful resources, including a page of curated learning resources. Why not try some of those?
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
9
u/Grey_Ten Jun 02 '26
It's not directly related to C, but I highly recommend this channel: https://www.youtube.com/@CoreDumpped
this guy explains the very basic concepts of how a compiler and a computer works, in a way that is enjoyable, and even addictive to watch
15
u/flatfinger Jun 02 '26
Embedded microcontrollers are great for learning low-level concepts. Many will require using a little bit of library code to configure I/O, but once I/O is configured, code can perform I/O operations by reading and writing certain addresses. For example, on a typical device, writing to PTC->PSOR any value where bit 0 is set might turn on a red LED, and writing any value where bit 1 is set might turn on a green one. Writing to PTC->PCOR any value where bit 0 or 1 is set would turn off the corresponding LED.
On many devices, one can fairly easy connect to computer using a UART (universal asynchronous receiver transmitter) and gain four other kinds of operation:
Many devices will drop bytes if too many are received without being read, and it's often useful to use facilities called interrupts to avoid having to constantly check whether a byte is ready, but the above facilities are sufficient to set up a console-based interface which can be used for an almost unlimited range of tasks.
1
u/Fewshin Jun 04 '26
Recently I've been translating some scientific code from Python to C. I think re-implementing Numpy and Scipy functionality with a focus on minimizing redundant operations would be a good exercise for beginners. Learning about code optimization and the instruction cycle forces you to think about how it all actually works even if Moore's Law and compiler/interpreter improvements have rendered a lot of optimizations unnecessary.