fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int val = 1234;
  5. int *ptr = &val;
  6. printf("The address of val is: %p\n", &val);
  7. printf("The address of ptr is: %p\n", &ptr);
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 2112KB
stdin
Standard input is empty
stdout
The address of val is: 0xbfc1c738
The address of ptr is: 0xbfc1c73c