[ create a new paste ] login | about

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

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


Output:
1
2
3
4
5
6
0xbf4bd754 : 0
0xbf4bd758 : 1
0xbf4bd75c : 2
0xbf4bd760 : 3
0xbf4bd764 : 4



Create a new paste based on this one


Comments: