6_5_02_array_param_2d_subscript_store.c (251B)
1 typedef unsigned char U8; 2 3 static void set_component(U8 pixels[2][4], int row, int component, U8 value) { 4 pixels[row][component] = value; 5 } 6 7 int test_main(void) { 8 U8 pixels[2][4] = {{0}}; 9 set_component(pixels, 1, 2, 7); 10 return pixels[1][2]; 11 }