I use fscnaf like the:

 

         FILE *fptr;

    int a;

 

   fptr = fopen("input","r");

   

         if ( fscanf(fptr,"%d",a) )    {

                   printf("%d",&a);

             }

      else printf("wrong");

      

      fclose(fptr);

 

But it can not run successfully.



[Non-text portions of this message have been removed]

Reply via email to