Q1.
If you initialise a string like this
Code:
new yeey[2][SOME_CONSTANT][3][128]
Can I check if [1][5][2] is empty by doing this?
Code:
if(!myString[0])
{
// ...
}
---
Q2
If I do this in the global (outside any function)
Code:
new yeey[2][32][3][128]
Wouldn't it reserve an awfull lot of memory by doing this?
(24576 chars if I'm not mistaken, but I forgot how much an int takes)
Or am I totally wrong, since I read somewhere that declaring variables globally is free storage.
Should compare with C.
Code:
int *yay;
yay = new int;
__________________