c is never defined in thie code you've given. Furthermore, c is one single cell in that array. You're using the same exact variable over and over. I'm assuming you want to move through the array? As such, replace 12 with a counter variable instead. Increment or decrement it as needed.
int main(int argc, char **argv)
int n = atoi(argv);
n = quotient(n);
Search the board. Converting from binary to decimal and back again is a common problem / post here.