Biggest number in computer ever

前端 未结 14 1016
傲寒
傲寒 2021-01-30 09:12

Just asked by my 5 year old kid: what is the biggest number in the computer?

We are not talking about max number for a specific data types, but the biggest number that a

14条回答
  •  春和景丽
    2021-01-30 09:45

    Well I had the same question earlier this day, so thought why not to make a little c++ codes to see where the computer gonna stop ... But my laptop wasn't with me in class so I used another, well the number was to big but it never ends, i'll run it again for a night then i'll share the number you can try the code is stupid

    #include 
    #include 
    
    int main() {
        int i = 0;
    
        for (i = 0; i <= i; i++) {
            printf("%i\n", i);
            i++;
        }
    }
    

    And let it run till it stops ^^

提交回复
热议问题