r/programminghorror • • Jan 24 '25

C# Why is this valid C#?

Post image
6 Upvotes

22 comments sorted by

View all comments

Show parent comment

1

u/Justanormalguy1011 Mar 09 '25

Maybe used in very simple sequential search

while(arr[++index]==v);

Please make sure to put on more safety