Simple Help.
#4

Quote:
Originally Posted by iPLEOMAX
Посмотреть сообщение
Reason please?
If you declare like this:
PHP код:
new array[100]; 
There will be: 100 cells * 4 bytes
And this array can stock vals from [-(2 ^ 31), (2^31)]

But if you declare like this:
PHP код:
new array[100 char]; 
There will be: 100 cells
And this array can stock vals from [0, 2^8-1]
If your val will exceeds 255, it will take the module.

^ - means power
Reply


Messages In This Thread
Simple Help. - by iPLEOMAX - 24.07.2011, 20:05
Re: Simple Help. - by MoroDan - 24.07.2011, 20:10
Re: Simple Help. - by iPLEOMAX - 24.07.2011, 20:11
Re: Simple Help. - by MoroDan - 24.07.2011, 20:14
Re: Simple Help. - by iPLEOMAX - 24.07.2011, 20:17

Forum Jump:


Users browsing this thread: 2 Guest(s)