How would you set a variable to equal infinity (or any guaranteed largest number value) in C?
Based upon your comments, you want an unsigned int (although you say "unsigned integer", so maybe you want an integral value, not necessarily an unsigned int).
In C, for unsigned integral type, the value -1, when converted to that type, is guaranteed to be largest value of that type:
size_t size_max = -1;
unsigned int uint_max = -1;
unsigned long ulong_max = -1;
assign the values SIZE_MAX, UINT_MAX and ULONG_MAX to the variables respectively. In general, you should include limits.h and use the appropriate macro, but it is nice to know the rule above. Also, SIZE_MAX is not in C89, so size_t size_max = -1; will work in C89 as well as C99.
Note that the overflow behavior is guaranteed only for unsigned integral types.