This is a rather silly question but why is int commonly used instead of unsigned int when defining a for loop for an array in C or C++?
int
unsigned int
<
I use int cause it requires less physical typing and it doesn't matter - they take up the same amount of space, and unless your array has a few billion elements you won't overflow if you're not using a 16-bit compiler, which I'm usually not.