title: Compilation error "expected '=', ',', ';', 'asm' or '__attribute__' before '<' token"
body: <pre><code>#include&lt;stdio.h&gt;
  int main(){
   register int i = 0;
   for(i=0;i &lt; 10; i++){
     printf("\n i : %d  \n",i);
   }
   return 0;
  }
  </code></pre>
  
  <p>I was trying a sample program of registers use in the loop counter.</p>
  
  <p>I'm getting the following error while trying to compile the program,</p>
  
  <pre><code>register.c:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&lt;' token
  </code></pre>
  
  <p>How to fix this compilation error.</p>