fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a=10;
  5. int *p;
  6. p=&a;
  7.  
  8. //*p=100;
  9. printf("%d\n",a);
  10. printf("&a=%p\n",&a);
  11. printf(" p=%p\n",p);
  12.  
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 5272KB
stdin
Standard input is empty
stdout
10
&a=0x7ffca0ec2424
 p=0x7ffca0ec2424