PrepAway - Latest Free Exam Questions & Answers

What is the output of the following code?

What is the output of the following code?
<code>
printf(‘%4$d %2$s sit on 2 trees and eat %3$3.2f %1$s’, “bananas”,
“monkeys”, 9, 99);
</code>

PrepAway - Latest Free Exam Questions & Answers

A.
%4$d %2$s sit on 2 trees and eat %3$3.2f %1$s

B.
99 monkeys sit on 2 trees and eat 9.00 bananas

C.
Monkeys Bananas sit on 2 trees and eat 9 99

D.
9 monkeys sit on 2 trees and eat 99 bananas

3 Comments on “What is the output of the following code?


Leave a Reply

Your email address will not be published. Required fields are marked *