02.11.2013, 19:37
Let's say I have declared an array and initialized first two slots of it with zeros:
I loop through it now:
Is it going to print two zero elements or maybe it assumes zeros are the same as NULL elements? Thanks
btw, can't check it myself now, sorry
Код:
#define NULL '\0' new array[5] = { 0, 0, NULL, NULL, NULL };
Код:
for(new i=0; array[i]!=NULL; i++) printf("%i", array[i]);
btw, can't check it myself now, sorry
