Programming MCQS - QUESTION DETAILS

What is the format specifier for printing a float in C?
A. %f
B. %d
C. %s
D. %c

%f is used for printing float values in C.

Similar Questions

What is the purpose of the 'malloc' function in C?






How do you declare a constant pointer in C?






How is a preprocessor directive indicated in C?






What is the purpose of the 'volatile' keyword in C?






What is the purpose of the 'do-while' loop in C?






How do you declare a global variable in C?






What is the output of printf("%d", ~5);?






What is the purpose of the 'rand' function in C?






What is the purpose of the 'union' keyword in C?






What is the output of printf("%f", 10 / 3);?