Discussion in 'all things UNIX' started by lotuseclat79, Oct 31, 2016.
An Array of Pointers vs. a Multidimensional Array
Hey thanks, that was quite interesting. Though I doubt I'll ever do anything like the 2D array trick in practice. Too clever, not obvious enough in intent.
Using const on the other hand, yes, very much. Const correctness is good!
Here is about the best pointer related article I have ever found if you are interested in pointers:
The Ksplice Pointer Challenge
Oy, looking at that gives me a headache!
I'm pretty sure that last one is wrong though. The & operator associates more strongly than +, so that should be taking the base address of x and literally adding 1.
Separate names with a comma.