[ create a new paste ] login | about

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

C, pasted on Dec 31:
1
2
3
4
5
6
7
8
#include <stdio.h>

int main() {
    int a[100];
    printf("%d\n", (int)(&a+1) -(int)&a);
    printf("%d\n", (int)(&a[1]) -(int)&a);
    return 0;
}


Output:
1
2
400
4


Create a new paste based on this one


Comments: