2
A plain integer variable in C under windows is 2 bytes in 16 bit windows, and 4 bytes in 32 bit windows.
1,000 bytes make a kilobyte
The people who create the language take the liberty of deciding the size of data types in a programming lanauage.If you (as a programmer) create your own custom data type, for example by defining a class, then you decide what goes into it - for example, in Java, if one of the pieces of data requires an integer, you have the choice of storing it as an int, which uses 4 bytes, or as a long, which uses 8 bytes (and permits larger numbers).
Depending on the movie length, a 1 hour movie will take up to 100,000 bytes to be produced and a 2 hour movie will take around 300,000 bytes.
A java.util.Date object will take about 32 bytes in memory.
16KB, or 16384 bytes, can be addressed with 14 address lines. (214 = 16384)
Approx. 9.3 Gigabytes!
As one byte can hold one letter of the alphabet, to store the word "Sarah" would take 5 bytes.
The answer is 246 sectors. 123 x 1024 bytes per KB = 125,952 total bytes in the file. 125,952 bytes / 512 sectors per cluster = 246 sectors
The phrase "hello world" consists of 11 characters, including a space. In a typical ASCII encoding, each character takes up 1 byte. Therefore, transmitting "hello world" will take 11 bytes. If you include a newline character at the end, it would take 12 bytes.
Umm....4 bytes...you kinda just answered your own question.Now, if you were to have asked "How many bits make a byte," I would have said that "Since there are 8 bits to a byte, you would multiply 8 bits by 4 bytes to get the answer of 32 bits in 4 bytes. Bonus tid-bit of info: 4 bits is a nibble!
To determine how many bytes are needed to represent the number 2501, we first convert it to binary. The binary representation of 2501 is "10011100001," which requires 12 bits. Since one byte is 8 bits, you would need 2 bytes (16 bits) to store the value 2501.