QUIZ 6

What is the output?

a. HELLO WORLD
b. HELLO WORLD100
c. HELLO WORLD11
d. HELLO WORLD11100

Answer : b
printf returns no. of characters printed by it. Here, it returns 11 as there are 11 characters printed in “HELLOtWORLD”, which means true for if condition to execute.
So, it prints HELLO WORLD, then 100 just after it

Leave a Reply

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