1.

Consider the code segment written below in C++ :if (count<10) // if#1if((count%4)==2) // if#2count<<”condition:white\n”;else //(Indentation is wrong)count<<”condition is:tan\n”;There are 2 if statements and one else.To which if, the else statement belong?

A. It belongs to if#1
B. It belongs to if#2
C. It belongs to both the if statements
D. It is independent
Answer» C. It belongs to both the if statements


Discussion

No Comment Found