0
What if I assign a huge number to a variable?
what will happen if I assign a huge number to a variable, in running the code will it not harm the computer?
2 Réponses
+ 1
If you exceeds the limited size of the variable type you will just get a compiler error or else its better to use array of that type. To find out what will happen please use try..catch block. Because that would prevent any error that will crach your pc
+ 5
it depends if the language
has a longest number limit
else of course memory
but that may be rare