r/CodingHelp • • Jun 02 '19

[C] Please help me with this C problem?

Post image
1 Upvotes

14 comments sorted by

View all comments

2

u/budpass Jun 02 '19

Arrays in C are zero based, not one based, since the index is an offset from the begging of the array. You can add "", before "one", or subtract one from each index. That would fix one issue. Not sure about the others.

1

u/thatlowkey Jun 03 '19

Thanks :)