Ask Question

What is this line of code doing? scanf ("%f", & height);

+5
Answers (1)
  1. 4 June, 17:20
    0
    It's saving a float value in your variable "height".

    for example:

    float height = 0.0;

    printf ("Insert your height: ");

    scanf ("%f", &height);
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What is this line of code doing? scanf ("%f", & height); ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers