Can anybody tell me why
remains looping indefinetly?
i == 0 in the beginning, I have checked it (I also initialized it to 0, same story)
currComb == 1
and currComb & (1 << i) == 0 after the first iteration
I am using gcc
Code:
for(i; currComb & (1 << i) != 0; i++);
i == 0 in the beginning, I have checked it (I also initialized it to 0, same story)
currComb == 1
and currComb & (1 << i) == 0 after the first iteration
I am using gcc