×

Loading...

我原来认为long 比int大,可娃告诉我它们的range是一样的。我也看到这页了,但主要说是bits不同。具体问题是给出10个数,问哪些是int 哪些是long。难道是通过check它们的bits来决定?

peterfl (Pl)
(#10534533@0)
2017-1-8 -05:00
Reply
Page address has been copied.
To share, click to copy page address.
Share Online by QR Code

Back To Topic: 【coding question】请大侠不吝赐教。long 和 int有什么区别。long :4 bytes, -2147483648 to 2147483647。int:4 bytes,-2147483648 to 2147483647。是一样的呀?

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习学科技术