title: Difference between return 0 and return 1
body: <p>My professor posted</p>
  
  <pre><code>int main(int argc, char **argv)
  {
      // enter code here
  
      printf("Test 1: trying odd(3) AND even(2)...\n");
      printf("%d\n", odd(3) &amp;&amp; even(2));
      printf("Test 2: trying odd(3) OR even(2)...\n");
      printf("%d\n", odd(3) || even(2));
      printf("Test 3: trying odd(4) AND even(7)...\n");
      printf("%d\n", odd(4) &amp;&amp; even(7));
      printf("Test 4: trying odd(4) OR even(7)...\n");
      printf("%d\n", odd(4) || even(7));
  
      return 0;
  }
  
  int odd(int n)
  {
      printf("in odd!\n");
  
      return n % 2 == 1;
  }
  
  int even(int r)
  {
      printf("in even!\n");
  
      return r % 2 == 0;
  }
  </code></pre>
  
  <p>as an assignment asking why lines 2 and 3 only return in odd! but 1 and 4 return in odd! and in even! I'm unsure as to why as I don't know the difference between the Return 1 and Return 0 commands. From what I can gather Return 1 will always return the value (in this case in odd!) but return 0 will only return it if it satisfies a certain condition?</p>
  
  <p>Also: does the code int length(char *name,int start,double finish): return the length of a word in characters as a real number?</p>
  
  <p>Thanks in advance to anyone that decides to help me.</p>