fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int p1 = 10;
  5. int *p2 = &p1;
  6. int *ptr = p2;
  7. printf("%i\n%i\n%i\n%p", *p2, *ptr, p1, (void *)p2);
  8. }
  9.  
  10. //https://pt.stackoverflow.com/q/542576/101
Success #stdin #stdout 0.01s 5552KB
stdin
Standard input is empty
stdout
10
10
10
0x7ffd6eda74c4