fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. float raiz = 3.1415;
  5. float *aponta_para_raiz = &raiz;
  6. *aponta_para_raiz = 3.141592;
  7. printf("RAIZ = %f\n", raiz);
  8. printf("ENDEREƇO DA RAIZ MODIFICADA = %p", (void *)aponta_para_raiz);
  9. }
  10.  
  11. //https://pt.stackoverflow.com/q/323674/101
Success #stdin #stdout 0s 4528KB
stdin
Standard input is empty
stdout
RAIZ = 3.141592
ENDEREÇO DA RAIZ MODIFICADA = 0x7ffe0da507e4