2 ms·
What you have to love here is that the answer is the maximum value of the type, which is... not great but it's perhaps the best of many bad options. However the
by tialaramex 5y ago
What you have to love here is that the answer is the maximum value of the type, which is... not great but it's perhaps the best of many bad options. However the way it's typically written is -1 even though this is an unsigned type, because C++ thinks assigning negative values to unsigned variables is a completely reasonable thing to do and needn't result in a diagnostic, let alone refuse to compile...