Skip to content

Instantly share code, notes, and snippets.

@aledruetta
Last active August 28, 2019 02:28
Show Gist options
  • Save aledruetta/c3153946057cf85b7827f70290890495 to your computer and use it in GitHub Desktop.
Save aledruetta/c3153946057cf85b7827f70290890495 to your computer and use it in GitHub Desktop.
double tempo = 0.0;
// declara e inicializa
double *ptr = &tempo;
// valor
printf ("%p\n", ptr);
// Saída: 0xff53...
// endereço
printf ("%p\n", &ptr);
// Saída: 0xff7a...
// dereferencia
printf ("%f\n", *ptr);
// Saída: 0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment