title: passing array of structure as a function parameter
body: <pre><code>typedef struct What_if
  {
      char   price                 [2];
  } what_if ;
  
  what_if  what_if_var[100];
  
  int format_input_records();
  
  int process_input_records(what_if *what_if_var);
  
  int format_input_records()
  {
      if (infile != NULL )
      {
          char mem_buf [500];
  
          while ( fgets ( mem_buf, sizeof mem_buf, infile ) != NULL ) 
          {
              item = strtok(mem_buf,delims);     
              strcpy(what_if_var[line_count].trans_Indicator,item) ;
              printf("\ntrans_Indicator     ==== : : %s",what_if_var[line_count].price);
              process_input_records(&amp;what_if_var);
              line_count=line_count+1;
          }
      }
  }
  
  int process_input_records(what_if *what_if_var)
  {
      printf("\nfund_price process_input_records    ==== : : %s",what_if_var[line_count]-&gt;price);
      return 0;
  }
  </code></pre>
  
  <p>I am facing error here, can any one please tell me what is the mistake i done here?</p>
  
  <blockquote>
    <p>Function argument assignment between types "<code>struct {...}*</code>" and "<code>struct {...}(*)[100]</code>" is not allowed.</p>
    
    <p>Expecting pointer to struct or union.</p>
  </blockquote>