What is the return type of sizeof operator?

前端 未结 3 1772
遥遥无期
遥遥无期 2020-12-18 17:31

What is the return type of sizeof operator? cppreference.com & msdn says sizeof returns size_t. Does it really return a size_t? I\'m using VS2010 Professional, and targ

3条回答
  •  时光取名叫无心
    2020-12-18 18:11

    The sizeof operator is used to get the size of types or variable in bytes. Returns an unsigned integer type of at least 16 bit. It's used to get portability.

    This warning is because of the unsigned integer where is defined the size_t.

提交回复
热议问题