fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. char *pc = "abcdefg";
  6. char **ppc = &pc;
  7.  
  8. printf("pc size=%d addr=%08x value=%08x point_to=%c\n",
  9. sizeof pc, &pc, pc, *pc);
  10. printf("ppc size=%d addr=%08x value=%08x point_to=%08x\n",
  11. sizeof ppc, &ppc, ppc, *ppc);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 2008KB
stdin
Standard input is empty
stdout
pc size=4 addr=bfadff88 value=08048560 point_to=a
ppc size=4 addr=bfadff8c value=bfadff88 point_to=08048560