| 1. | What will be the output of the program? class Test |
|||||||
Answer: Option B Explanation: The first two iterations of the for loop both x and y are incremented. On the third iteration x is incremented, and for the first time becomes greater than 2. The short circuit or operator || keeps y from ever being incremented again and x is incremented twice on each of the last three iterations. |

Rush
Posted at 19:45, 07 FebruaryCan someone explain the above code?