[Tutorial] Beginner's Guide: Single/Two/Multi-dimensional Arrays
#4

Quote:
Originally Posted by iPLEOMAX
View Post
pawn Code:
//If you do:
printf("%c", MyArray[10]);

//will ouput:
(null) because the last character is '\0'
I'm quite sure that this is an OOB (Out-Of-Bounds) error; the 10th element doesn't exist. Other than that, very good.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)