while(fread(&a,sizeof(a),1,fp)==1)

please explain the parameters and the output of the function and how output of fread ==1