a is better (declare before the loop) if You need to reuse the variable outside the loop after it finishes executing.