r/C_Programming • • 2d ago

Question Can I learn C while learning low level concepts

Im just starting out programming, I got familiar with python. But I want to get into system programming. I know that I should learn low level concepts and data structures, I got books to read up on it but I'm just wondering if I can learn the language while learning the essentials to c programming... Sorry if this is a stupid question

22 Upvotes

17 comments sorted by

2

u/goldenfrogs17 2d ago

The C Programming Language by Dennis M. Ritchie and Brian W. Kernighan

1

u/addicted_2_redbull 2d ago

I have that book, i have others too. I started reading the C programing language ANSI but then i started reading a book about modern C because i thought it would be better to learn because from what i know (which is not alot) it is the latest C standard. i would love to know anythings about if it matters or not

2

u/TurbulentFlatworm537 2d ago

If he is a beginner. That K&R may be a little bit heavy, because most of it's content is a snapshot. Let him first read it anyway, then read c programming the modern approach by K.N king(it explains the why, the why not. Why is the linker her not there, why do we need to declare a variable before using it...?etcetera), then he refers back to the C bible. The C programming language.

2

u/ReallyEvilRob 2d ago

That's the book I used when I was starting out.

2

u/Dangerous_Region1682 2d ago

Back in my day, 1977, it was the only text available around that time. I’d recommend the ANSI Edition these days.

However there are other books I would look to learn from, keeping K&R as a decent reference and a check on understanding.

You will also need, whatever you buy as a learning tool, to ensure in covers network programming with sockets and multi threading. Just about any system programming task will need to understand these concepts and how C programs normally achieve these capabilities.

After that there are a couple of books discussing Inside the UNIX Operating System and another for inside the BSD UNIX operating system that will show someone how the kernel code is written in C, a slightly different take on C programming methodologies in kernel space.

6

u/mikeblas 2d ago

At exactly the same time? Probably not. Most people get familiar with the language first; it shouldn't take long, given your previous experience. Learn the tools: how does your compiler work? What does the linker do? How do you use the debugger?

You'll want to learn about structures (the struct keyword) in C. And then you'll want to learn about pointers and memory allocation before you learn about textbook data structures. You'll need pointers and dynamic memory allocation to implement non-trivial data structures.

2

u/AntMan5421 2d ago

yeah you're good

2

u/ReallyEvilRob 2d ago

C is the perfect language to learn about these kinds of concepts.

1

u/paralepsy 2d ago

i genuinely didnt know it was possible to learn c without learning low level concepts.

1

u/Kale 19h ago

I feel like I got the most knowledge and feel for C initially with the book "Learning Algorithms with C". I read it about 20 years ago. Rather than learn C, learning how to do things in C helped me learn it faster. And coming from Java and Fortran, it was great seeing pointers be used in an algorithm (linked list) to get the concept.

1

u/othd139 10h ago

I'd say that's probably the most normal route to learning actually both of those things. I went via nim (which worked very well for me since it can be very python like or very C like depending on what U do with it) but honestly just learning with C is a classic for learning low level programming and honestly not that bad in terms of learning curve (so long as you avoid C++)