[ create a new paste ] login | about

Link: http://codepad.org/4QTCAybB    [ raw code | output | fork ]

C, pasted on Jun 23:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>

int main()
{
    int i, j;
    int a[2][2] = {
        {42, 42}
    };

    for (i = 0; i < 2; i++)
        for (j = 0; j < 2; j++)
            printf("%d\n", a[i][j]);
    
    return 0;
}


Output:
1
2
3
4
42
42
0
0


Create a new paste based on this one


Comments: