[ create a new paste ] login | about

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

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

int main() {
  int arr[] = {0, 0, 0};
  int x = (int)&arr[2] - (int)arr;
  printf("%d", x);
}


Output:
1
8


Create a new paste based on this one


Comments: