K
Keith Thompson
pereges said:Thanks for the clarification. After reading this, I guess I will
continue using unsigned long for all the 3 situations.
Um, why? It will probably work, but for case 1 size_t is exactly the
right type, and for case 2 it's guaranteed to work, while unsigned
long isn't.
It sounds like you want to use unsigned long if at all possible, and
use size_t only if it's absolutely necessary. Why is that?