I simplified your code a bit.
Code:
#include <stdio.h>
#include <string.h>
int testPalindrome(char array[], int n, int size);
int main()
{
char string[ 15 ];
scanf("%s", string);
printf("%d\n", testPalindrome(string, strlen(string)-1, strlen(string)) );
return 0;
}
int testPalindrome(char array[], int n, int size)
{
if (size % 2 == 1 && (size - 1) / 2 == n ) {
// TEST STATEMENT
printf("if 1\n");
return 1;
}
else {
// TEST STATEMENT
printf("if 3\n");
if (array[ n ] == array[ size - n - 1 ])
return testPalindrome(array, n - 1, size);
else
return 0;
}
}