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
<
Because unless you have an array with size bigger than two gigabyts of type char, or 4 gigabytes of type short or 8 gigabytes of type int etc, it doesn't really matter if the variable is signed or not.
char
short
So, why type more when you can type less?