Column-major array storage in C compilers
问题 Are there any C compilers that have extensions to store an array in column-major order instead of the standard row-major order? 回答1: Short answer is "No". Long answer is that storing an array in column-major order would break the one-to-one correspondence between array index operations and pointer arithmetics, and the way an N-dimension array is sliced into N-1 dimension arrays. Consider a 10x20 array stored in column-major order. This means that cells in adjacent columns would be next to