Unsigned keyword in C++

后端 未结 5 1574
醉酒成梦
醉酒成梦 2020-12-02 08:38

Does the unsigned keyword default to a specific data type in C++? I am trying to write a function for a class for the prototype:

unsigned Rotate(unsigned ob         


        
5条回答
  •  臣服心动
    2020-12-02 09:20

    From the link above:

    Several of these types can be modified using the keywords signed, unsigned, short, and long. When one of these type modifiers is used by itself, a data type of int is assumed

    This means that you can assume the author is using ints.

提交回复
热议问题