fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main() {
  5.  
  6. int n1, *ptr;
  7. n1 = 25;
  8. ptr = &n1;
  9.  
  10.  
  11.  
  12. printf("\n conteudo de n1 &d \n \n ", n1);
  13. printf("\n endereco de memoria n1 %d \n \n", ptr);
  14. printf("\n endereco de ponteiro %d \n \n", *ptr);
  15. printf("\n endereco de memoria %d \n \n ", &ptr);
  16.  
  17. system("pause");
  18. }
Success #stdin #stdout #stderr 0s 9432KB
stdin
Standard input is empty
stdout
 conteudo de n1 &d 
 
 
 endereco de memoria n1 -924244876 
 

 endereco de ponteiro 25 
 

 endereco de memoria -924244872 
 
 
stderr
sh: 1: pause: not found