When you create an integer variable, what does your computer actually do?

When you create an integer variable, what does your computer actually do?



The computer allocates a fixed number of bits for storing it.

Most modern computers use 32 or 64 bits, but some numbers are so big they don't fit even in 64 bits, like sextillion, which requires 70 digits in binary.

Popular posts from this blog

After analyzing the model, your manager has informed that your regression model is suffering from multicollinearity. How would you check if he's true? Without losing any information, can you still build a better model?

Is rotation necessary in PCA? If yes, Why? What will happen if you don't rotate the components?

Given that merge sort splits the array into 2, performs a recursive call on each of the 2 arrays, and repeats until the base case of 1 or less items in an array is reached, how many levels of recursion are there and why?