What is an unsigned char?

后端 未结 17 1414
借酒劲吻你
借酒劲吻你 2020-11-22 11:05

In C/C++, what an unsigned char is used for? How is it different from a regular char?

17条回答
  •  忘掉有多难
    2020-11-22 11:33

    unsigned char takes only positive values....like 0 to 255

    where as

    signed char takes both positive and negative values....like -128 to +127

提交回复
热议问题