Compare unsigned T with 0: what can possibly go wrong?

后端 未结 0 1941
独厮守ぢ
独厮守ぢ 2021-01-28 04:49

Maybe a silly question, but today I\'ve faced this type-generic code:

unsigned T v;
...
if ( v == 0u )
{
    ...
}

Is unsigned-suffix

相关标签:
回答
  • 消灭零回复
提交回复
热议问题