Some suggestions:
#include <stdio.h> //add
#define maxarr 10 //change maxarr to a define
int getInput(void); //88
Type: Posts; User: Adak
Some suggestions:
#include <stdio.h> //add
#define maxarr 10 //change maxarr to a define
int getInput(void); //88
Perhaps in a for loop, you could have the input tested, either in a block of code, or in a function, before assigning the value into your array, something like:
for(i = 0; i <...