fork download
  1. /*swap04.c*/
  2. #include <stdio.h>
  3.  
  4. //void swap(int*,int*);
  5.  
  6. int main(void) {
  7. // your code goes here
  8.  
  9. int a;
  10. int *p;
  11. int **pp;
  12.  
  13. p=&a;
  14. pp=&p;
  15.  
  16. **pp=10;
  17.  
  18. printf("a=%d,*p=%d,**pp=%d\n",a,*p,**pp);
  19.  
  20. return 0;
  21. }
  22.  
  23.  
Success #stdin #stdout 0s 5320KB
stdin
10
stdout
a=10,*p=10,**pp=10