🎴 Flashcard Mode
Java
Card1 / 5
Mastered0
Review0
QuestionClick to flip
What would be the output of the following C program?
int n=2, m=3, k;
k = (float)m/(float)n;
printf(k=%0.5d,k);
AnswerClick to flip back
A
k=00001
💡 Explanation:
This is the correct option as value 5 after the decimal point in the printf statement allows the C compiler to prefix 0 five times before displaying the value of k.