Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
(arr[i] == arr[i+1] && ++i)


What I have tried:

..................................................................................................
Posted
Updated 15-Dec-22 6:32am

1 solution

The value of i (or i + 1) is ANDed with the variable in the second (or third) element of the sub-array. The result is stored in the first (or second) element of the sub-array. But either way it is bad code, as the result cannot be guaranteed, owing to the use of ++i inside the whole expression.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900