30.09.2016, 20:06
Not sure why you would need hexadecimal numbers, except perhaps to represent the highest and lowest possible numbers. After a while you know those by heart: 0x7FFFFFFF is the largest possible number that can be stored in a 32-bit unsigned integer. This is equal to roughly 2.14 billion. Likewise, 0x80000000 is the smallest possible number, equal to -2.14 billion.
And yes, if you need to find both lowest and highest then you can indeed bundle them in a single loop.
And yes, if you need to find both lowest and highest then you can indeed bundle them in a single loop.