• 2022-06-08
    FILE*fp;有两个整型变量a和b,若要从文件把数据读到其中,正确的形式是:‍
    A: fscanf(fp,"%d%d",a,b);
    B: fscanf(fp,"%d%d",&a,&b);
    C: fscanf("%d%d",&a,&b,fp);
    D: fprintf(fp,"%d",a,b);