fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a[3]={1,2,3};
  5. int *p=a;
  6. for(int i=0;i<3;i++){
  7. printf("%d\n",*(p+i));
  8. }
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 5264KB
stdin
Standard input is empty
stdout
1
2
3