Sorry, this is a really stupid question, I just looked at the old exam documentation for my Operating Systems class and noticed that this question may occur so often. How can you answer this question? I really do not understand.
Another question:
What are the maximum and minimum unsigned integers that can be represented by 7 bits, 9 bits and 10 bits?
Can anyone tell me how you do it? Is it just 2 ^ 7?
Thank you so much!:)
How many bits need to be addressed to 32 bytes?
5 ( 2 ^ 5 == 32). log2(32). , (32), , .
log2(32)
, 7 , 9 10 ?
unsigned int , . ints 2 ^ 7-1 (127), 2 ^ 9-1 (511) 2 ^ 10-1 (1023) .
.
0 99 ? 2, ?
? ? - 100 , 10 100 (, : 10 _ = 100). , 100 , 0..99 , 1..100.
, , 2 10. ( , - smart-aleck, " 10".)
Someone will correct me if I am wrong, but max unsigend ints (2 ^ x - 1)
Source: https://habr.com/ru/post/1778477/More articles:need to know how to use nosql database with ruby - ruby-on-railsUsing Android C2DM with Market Disabled - androidCalling activity from an application from another android application - androidIs there a way to automatically detect links in Django templates? - pythonHow can I hide form1 while running Application.Run (form1)? - c #Inclusion dependency in VS2010 - Visual leak detector - include.NET ORM that supports multithreading better? - multithreadingHow do I model this relationship? - ruby-on-railsComponents without VCL forms in Delphi - winapiiPhone: NSTimer small memory leak problem - memoryAll Articles