The C standard guarantees that an int is able to store every possible array size. At least, that\'s what I understand from reading §6.5.2.1, subsection 1 (Array
int
size_t is a typedef of unsigned integer (such as int or long).
In some 64bit platforms, int can be 32bit, while size_t can be 64bit.
It is used as a more standard way for size.