nvm figured it out
nvm figured it out
Last edited by dwainbro; 04-06-2013 at 05:16 PM.
You're kidding right?
Firstly, the number of iterations in the first loop is given by a[0]/2. It needs to be related to the actual length of the array.
Second, the printf() statement in main() is printing the address of a function (s) as an int.
Depending on your compiler and compiler settings, a lot of compilers would have given extensively warnings about the second problem.