title: Why I am getting parameter is initialized error in C?
body: <pre><code>struct subscriber
  
  {
  
    char phonenumber[20];
  
    char name[50];
  
    float amount;
  
  }s;
  
  void modifyrecords()
  
    FILE *f;
  
    char phonenumber[20];
  
    long int size=sizeof(s);
  
    if((f=fopen("c:/file.ojs","rb+"))==NULL)
  
      exit(0);
  
    system("cls");
  
    printf("Enter phone number of the subscriber to modify:");
  
    scanf("%[^\n]",phonenumber);
  
    fflush(stdin);
  
    while(fread(&amp;s,sizeof(s),1,f)==1)
  
    {
  
      if(strcmp(s.phonenumber,phonenumber)==0)
  
      {
  
        system("cls");
  
        printf("\n Enter phone number:");
  
        scanf("%s",&amp;s.phonenumber);
  
        printf("\n Enter name: ");
  
        fflush(stdin);
  
        scanf("%[^\n]",&amp;s.name);
  
        printf("\n Enter amount: ");
  
        scanf("%f",&amp;s.amount);
  
        fseek(f,-size,SEEK_CUR);
  
        fwrite(&amp;s,sizeof(s),1,f);
  
        break;
  
      }
  
    }
  
    fclose(f);
  
  }
  </code></pre>
  
  <p>C:\Users***\Desktop\a.c|394|error: parameter 'size' is initialized|
  I am getting parameter 'size' is initialized error in this code. After googling I found out I may have to pass certain arguments to suppress these kind of errors. Is this the only solution? Actually I am using Code::Blocks so if is the only way how do I pass command line arguments in it?</p>