[Solved] What type should be used to loop through an array? [duplicate]
Hmm, interesting case. You want to be able to loop with, let’s just call it hypothetically the largest possible number, and thus wrap-around rather than ever having the comparison return false. Something like this might do the trick: char arr[SIZE_MAX]; size_t i = 0; do { /* whatever you wanna do here */ ++i; } … Read more