Xv6 with picoc & Linkage editor  v1.0
The project delineate mutual cohesion between c library, linkage editor ( linker), interpreter and operating system by porting the same on xv6 kernel
 All Data Structures
38_multiple_array_index.c
00001 #include <stdio.h>
00002 
00003 int a[4][4];
00004 int b = 0;
00005 int x;
00006 int y;
00007 
00008 for (x = 0; x < 4; x++)
00009 {
00010     for (y = 0; y < 4; y++)
00011     {
00012         b++;
00013         a[x][y] = b;
00014     }
00015 }
00016 
00017 
00018 
00019 for (x = 0; x < 4; x++)
00020 {
00021     printf("x=%d: ", x);
00022     for (y = 0; y < 4; y++)
00023     {
00024         printf("%d ", a[x][y]);
00025     }
00026     printf("\n");
00027 }
00028 
00029 void main() {}
 All Data Structures