title: palindrome checker algorithm
body: <p>i'm having problems writing this excercise. 
  this should evaluate if a given array contains a palindrome sequence of numbers, the program builds correctly but doesn't run (console remains black). where am i wrong on this? thanks for all help!</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  #define SIZE 15
  
  //i'm using const int as exercise demand for it 
  //should i declare size as int when giving it to function? also if it's been declared?
  //i'm a bit confused about that
  
  int palindrome(const int a[], int p, int size); 
  
  int main()
  {
      int a[SIZE] = {0, 1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1, 0};
      int p = 1;    //i'm not using boolean values, but i think should work anyway, right?
  
      p = palindrome(a, p, SIZE);
  
      if (p)
          printf("\nseries is palindrome\n");
      else
          printf("\nseries isn't palindrome\n");
  
      return 0;
  }
  
  int palindrome(const int a[], int p, int size)
  {
      int mid, j;
      mid = size / 2;
  
      while (p) {
          for (j = 0; j &lt; (SIZE / 2); j++){
              if (a[mid + (j + 1)] != a[mid - (j + 1)])  //i think i might be wrong on this, but don't know where i'm in fault
                  p = 0;
          }
      }
      return p;
  }
  </code></pre>
  
  <p>p.s.
  how can i activate debugger "watches" on Code Blocks to look at others function variables? (i put a stop on main function)</p>