24.07.2011, 20:14
If you declare like this:
There will be: 100 cells * 4 bytes
And this array can stock vals from [-(2 ^ 31), (2^31)]
But if you declare like this:
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
PHP код:
new array[100];
And this array can stock vals from [-(2 ^ 31), (2^31)]
But if you declare like this:
PHP код:
new array[100 char];
And this array can stock vals from [0, 2^8-1]
If your val will exceeds 255, it will take the module.
^ - means power