title: the following is giving an error, please tell what is wrong with it
body: <pre><code>#include&lt;stdio.h&gt;
  main( )
  { int num[ ] = {24, 34, 12, 44, 56, 17};
   dislpay(&amp;num[0],6); 
  }
  display ( int *j, int n ) 
  {
  int i ;
  for ( i = 0 ; i &lt;= n - 1 ; i++ )
   { 
    printf ( "\nelement = %d", *j ) ; 
    j++ ; /* increment pointer to point to next element */ 
      }
  }
  </code></pre>
  
  <p>The language is c, windows vista using visual c++ 2005 express.</p>