Doubt when using variables [duplicate]

0
#include <stdio.h>

main()
{
    float valor;

    printf("...");
    scanf("%f", &valor);
    printf("%0.2f", valor);
}

In scanf I should reference the pointer (memory space), since in printf this reference is not valid. What is the most consistent explanation?

    
asked by anonymous 17.03.2017 / 17:29

0 answers