title: Parse Error: Simple C Program
body: <p>I have the following simple code for a class and am getting a parse error for each line starting <code>c = c ...</code> in the if statements. Additionally I'm getting the following errors:</p>
  
  <p>Warning: type mismatch with previous implicit declaration. Previous implicit declaration of isUpperCase in function isUpperCase: parse error before '=' token.
  And a similar error for isLowerCase.</p>
  
  <p>Does anyone have any insight?</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;string.h&gt;
  
  #define LOWERCASE_START = 97
  #define LOWERCASE_END = 122
  #define UPPERCASE_START = 65
  #define UPPERCASE_END = 90
  #define ALPHABET_LENGTH = 26
  
  void simpleEncryption(char s[]){
      int i;
      for (i=0; i &lt; strlen(s); i++){
          char c = s[i];
          if (isUpperCase(c) == 1){
              c = c - UPPERCASE_START + 1;
              c = c % ALPHABET_LENGTH;
              c = c + UPPERCASE_START;
          } else if (isLowerCase(c) == 1){
              c = c - LOWERCASE_START + 1;
              c = c % ALPHABET_LENGTH;
              c = c + LOWERCASE_START;
          }
          s[i]=c;
      }
  }
  
  int isUpperCase(char c) {
      if (c &gt;= UPPERCASE_START &amp;&amp; c &lt;= UPPERCASE_END) {
          return 1;   
      } else {
          return 0;
      }
  }
  
  int isLowerCase(char c) {
      if (c &gt;= LOWERCASE_START &amp;&amp; c &lt;= LOWERCASE_END) {
          return 1;   
      } else {
          return 0;
      }
  }
  </code></pre>