Unrolling loop in C - Interesting