You need to read a floating-point value from the user in the C programming language.
Which of the following statements correctly performs this task?
- AOption (a)
float x; scanf("%f",*x);
- BOption (b)
float x; scanf("%d" , &x);
- COption (c)
float x; scanf("%f" , x);
- DOption (d)
float x; scanf("%f, &x);
View answer & explanationHide answer & explanation
Correct answer
float x; scanf("%f",*x);