title: C error: expected '=', ',', ';',
body: <p>Im working on a PIC24f microcontroller, writing a C code for communication protocol.Im facing an error in function Reade2PW. I thought uint16_t gives the problem so i changed the 
  "uint16_t" to "int16" &amp; "int16_t" and compiled but the problem is still remains the same i.e it gives the same error. My MPLAB using XC16
  compiler. I read XC16 user guide, it can support uint16_t and int16_t.
  Here is the screenclip from the XC16 user guide. </p>
  
  <p><a href="https://i.stack.imgur.com/1V9mS.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1V9mS.jpg" alt="enter image description here"></a></p>
  
  <p>How to solve this problem? Your valuable suggestions will be highly appreciated.</p>
  
  <p>Thanks </p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include &lt;stdint.h&gt;
  
  int main(void)
      {
          ..
          ..
          return 0;
      }
  
  unsigned uint16_t Reade2PW(unsigned uint16_t rde2pw) //Error here
          {   
              unsigned uint16_t EEPVal;
              unsigned char i, *Ptr;
              ....
          }
  void SaveE2PW(unsigned uint16_t rde2pw, unsigned uint16_t Cx)//Error here
         {    
              unsigned char i, *Ptr;
              ..
         }
  </code></pre>
  
  <p>Error Description:</p>
  
  <pre><code>error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Reade2PW'
  error: expected ';', ',' or ')' before 'rde2pw'
  </code></pre>