[ create a new paste ] login | about

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

C, pasted on Apr 13:
1
2
3
4
5
6
7
8
9
#include<stdio.h>
int main(void){
  int ary[] = {1,2,3,4,5};
  int i;
  for(i=0; i<10; i++){
    printf("%p : %d\n",&(ary[i]),ary[i]);
  }
  return 0;
}


Output:
1
2
3
4
5
6
7
8
9
10
11
0xbf4f6f84 : 1
0xbf4f6f88 : 2
0xbf4f6f8c : 3
0xbf4f6f90 : 4
0xbf4f6f94 : 5
0xbf4f6f98 : -16121856
0xbf4f6f9c : -1085313088
0xbf4f6fa0 : 1075105060
0xbf4f6fa4 : 1073828160
0xbf4f6fa8 : -1085313048



Create a new paste based on this one


Comments: