Wow. I've been flirting around with learning C for awhile now (coming from a couple dynamic languages, including python), and this is by far the most helpful read about pointers I've ever come across. Thanks a ton.
Re:Teaching C
by nickpsecurity on Tuesday May 10, 2016 @05:16PM
(#11670729)
Good idea. Give them these:
Re:Teaching C
by kachnuv_ocasek on Tuesday May 10, 2016 @06:11PM
(#11671102)
Also picoc: https://code.google.com/archive/p/picoc/
Re:Teaching C
by nickpsecurity on Tuesday May 10, 2016 @06:17PM
(#11671138)
Heck yeah. Thanks for the tip. Btw, new link is here:
+1 to this. GDB and valgrind are the best things about writing C.
Valgrind is the best thing since sliced bread - saved me so much time and agony...
One things that I've found enlightening is when you have an IDE that allows you to step through mixed source and assembly. You can see your data being slopped around and processed. (int a = 10; becomes ld R4,10)
I agree with this. I found another article that made the transition for someone coming from something like Python or Ruby easier. It shows how to use gdb as a sort of C REPL. https://www.recurse.com/blog/5-learning-c-with-gdb
The quick feedback loop certainly makes things like pointers, arrays, etc, more clear.