fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int n = 123;
  5. int* ptrn = &n;
  6. int** ptrnn = &ptrn;
  7.  
  8. int* m = *ptrnn;
  9.  
  10. printf("*ptrnn = %d\n", *ptrnn);
  11. printf("*m = %d\n", m);
  12. printf("m = %d\n", *m);
  13.  
  14. // printf("n = %d\n", *ptrn);
  15. // printf("*n = %p\n", ptrn);
  16. // printf("*n = %p\n", *ptrnn);
  17. // printf("n = %d\n", **ptrnn);
  18.  
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
*ptrnn =  21271060
*m =  21271060
m =  123