How do I specify an integer literal of type unsigned char in C++?

前端 未结 9 1666
灰色年华
灰色年华 2020-12-08 18:38

I can specify an integer literal of type unsigned long as follows:

const unsigned long example = 9UL;

How do I do likewise for an unsigned

9条回答
  •  无人及你
    2020-12-08 19:04

    I suppose '\0' would be a char literal with the value 0, but I don't see the point either.

提交回复
热议问题