Programming MCQS - QUESTION DETAILS

What is the output of printf("%f", 10 / 3);?
A. 3.33
B. 3.0
C. 3
D. 3.333333

Division of integers results in an integer, so 10 / 3 is 3.0.

Similar Questions

How is a single-line comment written in C?






How do you declare a global variable in C?






What is the purpose of the 'this' keyword in Java?






What is the role of 'calloc' function in C?






How do you achieve multiple inheritance in Java?






What is the output of printf("%c", 65);?






How do you declare an array of function pointers in C?






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






What does the 'printf' function do in C?






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