15.04.2017, 22:14
A variable has 32 bits.
If 32 bits are 4 bytes, then each byte has 8 bits. Right? Just as simple as 32/4 = 8.
If you declare 256 cells, you have 256 "variables", then: 256 * 4 bytes = 1024 bytes = 1.024 kylobytes = 0.001024 megabytes
PHP код:
new g_Var; // 32 bits = 4 bytes
If you declare 256 cells, you have 256 "variables", then: 256 * 4 bytes = 1024 bytes = 1.024 kylobytes = 0.001024 megabytes

