Q. %f access specifier is used for ________.
β
Correct Answer: (B)
Floating type
Explanation:
- %f is a format specifier in C language used for printing floating-point numbers (i.e., float and double types).
- It is used with printf() and scanf() functions to handle floating-point values.
Example:
#include <stdio.h>
int main() {
float num = 12.345;
printf("The number is: %f\n", num);
return 0;
}
Output:
The number is: 12.345000
Breakdown of Options:
Correct Answer:
β (B) Floating type