Stop Microsoft
Miscellaneous => Programming & Networking => Topic started by: Stryker on 1 September 2003, 13:45
-
aside from the fact that it's useless, what's wrong with this code? At the very end, after the last printf() i get a segmentation fault.
thanks
-
Change this
for (x=1;x<9;x++)
to
for (x=0;x<8;x++)
Arrays are indexed from 0, not 1. i.e. your array is indexed from 0 to 7, not 1 to 8.
-
i knew that, i was just testing ya ;)
thanks
-
itm