How do languages such as Python overcome C's Integral data limits?

后端 未结 5 640
天命终不由人
天命终不由人 2021-01-15 16:06

While doing some random experimentation with a factorial program in C, Python and Scheme. I came across this fact:

In C, using \'unsigned long long\' data type, the

5条回答
  •  滥情空心
    2021-01-15 16:41

    Python assigns to long integers (all ints in Python 3) just as much space as they need -- an array of "digits" (base being a power of 2) allocated as needed.

提交回复
热议问题