long long、int的范围

  • unsigned int 0~4294967295 (10位数,4e9)

  • int -2147483648~2147483647 (10位数,2e9 2^31 - 1)

  • long long: -9223372036854775808~9223372036854775807 (19位数, 9e18 ) 2^63 - 1

  • unsigned long long:0~18446744073709551615 (20位数,1e19) 2^64 - 1

发布了351 篇原创文章 · 获赞 277 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/qq_41280600/article/details/104050285