In fact, there is a compound condition: if(i == 0 || array[i] != array[i - 1])
If i == 0 to calculate both parts of the condition, or just the first? Describes whether the processing order of these conditions in the documentation or is it compiler dependent?
Oceane_Von84 answered on September 19th 19 at 12:18
Solution
The type of such operations is called a strict and poloostrova.
In eng. the language is called "Short circuit evaluation"
And here Is short-circuiting boolean operators mandated in ... this question on stackoverflow.
Please sign in or sign up to write your answer or comment.