fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x[10]={0,0,0,0,0,0,0,0,0,0};
  5.  
  6. int *p = x;
  7.  
  8. scanf("%d",&x[0]);
  9.  
  10. scanf("%d",&x[9]);
  11.  
  12. for(int i = 0;i<10;i++){
  13. printf(" %d ",&p[i]);
  14. }
  15.  
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 5264KB
stdin
5  10
stdout
  948844848    948844852    948844856    948844860    948844864    948844868    948844872    948844876    948844880    948844884