[ create a new paste ] login | about

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

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

int main (void) {
    int arr[3] = {2,3,4};
    char *p;
    int i;
    p = (char*)arr;
    printf("%d", *p);
    for(i = 0; i < 11; i++) {
        p = p + 1;
        printf("%d", *p);
    }

    return 0;
}


Output:
1
200030004000


Create a new paste based on this one


Comments: