15.04.2017, 22:06
Quote:
Local variables are automatically discarded as soon as control leaves the function. Also a cell is actually 4 bytes; 32 bits with 8 bits per byte.
I was never a fan of those wrapper functions. People that use those tend to mindlessly scatter them around; often calling the wrapper multiple times within the same function where it would have obviously been better to get the value once. I personally tend to store the non-changing information (name, ip, computer id) globally upon connect and then I reference it from there. |
Edit.
I didn't understand well this:
That means what if I create a variable with 256 cells, it will have 1024 bytes (because of 256 * 4 is 1024 )?
If yes, what does "32 bits with 8 bits" means?