1. 请运行一下程序,想要程序运行结果的截图

img


#include <stdio.h>



#include <stdio.h>


int main()
{
    FILE *fp;
    char s[20];
    int i = 1;
    fp = fopen("abc.txt""r");
    if(fp == NULL)
        return 0;
    while(1)
    {
        fgets(s, 20, fp);
        if(feof(fp))
            break;
        printf("%04d:%s", i, s);
        i++;
    }
    fclose(file);
}

#include<stdio.h>
main()
{
printf("abcdefg\n");
printf("hijklmn\n");
printf("opqrstu\n");
printf("vwxyz\n");
return 0;
}