fork download
  1. #include <stdio.h>
  2.  
  3. void f(int **p, int a[])
  4. {
  5. *p = a;
  6. }
  7.  
  8. int main()
  9. {
  10. int a[]= {1,3,5,7};
  11. int *p=&a[1];
  12. f(&p,a);
  13. p++;
  14. printf("%d",*(p));
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0.01s 2724KB
stdin
Standard input is empty
stdout
3