I am currently trying to learn C and I have come to a problem that I\'ve been unable to solve.
Consider:
#include
#include
See PolyThinker's comment which is absolutely spot on.
In addition to the way you pass the array, you should check a few other issues: