fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int x = 2;
  5. int *p = &x;
  6. printf("O endereço de X e: %p\n", (void *)p);
  7. printf("O valor de X e: %d\n", *p);
  8. }
  9.  
  10. //https://pt.stackoverflow.com/q/323460/101
Success #stdin #stdout 0s 4288KB
stdin
Standard input is empty
stdout
O endereço de X e: 0x7ffc87e7a694
O valor de X e: 2