What will be displayed when the following C
code segment completes execution ?
If (1 &&0% 10) printf("one")
else if (1 &&0% 10 >=0) printf(“Two”);
else printf(“Three”);
(A) one
(B) two
three 0
W
(D) no display will be produced
Answers
Answered by
2
Answer:
two
Step-by-step explanation:
If loop executes when the logical expression inside it returns '1' (yes).
The first and third expressions return 0 while second expression return 1.
Hence it would print two.
Hope this helps you
geekyboy134:
Thanks I need few more help pls
Similar questions