Miscellaneous > Programming & Networking
quick C question
(1/1)
Stryker:
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
--- Code: ---
--- End code ---
flap:
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.
Stryker:
i knew that, i was just testing ya ;)
thanks
xyle_one:
itm
Navigation
[0] Message Index
Go to full version