Is `-1` correct for using as maximum value of an unsigned integer? – stackoverflow.com

I have had a conversation with my colleague, what is better: using -1 for a maximum unsigned integer number or using a value from limits.h or std::numeric_limits ? I have told my colleague that using ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Is `-1` correct for using as maximum value of an unsigned integer? – stackoverflow.com"