Math, asked by geekyboy134, 1 year ago

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 InnerWorkings
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
geekyboy134: Sorry being so annoying lol
InnerWorkings: I don't think I can spend more time now
InnerWorkings: I really sorry
InnerWorkings: I can check them later if you want me to
geekyboy134: I see
geekyboy134: it's okay
InnerWorkings: Anyway all the best for your exam
geekyboy134: Thanks
geekyboy134: Have a good day
Similar questions