有以下程序 #include<stdio.h> main() FILE *f; f=fopen("filea.txt","w"); fprintf(f,"abc"); fclose(f); 若文本文件filea.txt中原有内容为:hello,则运行以上程序后,文件filea.txt中的内容为
A. abc
B. abclo
C. helloabc
D. abchcllo
查看答案
下面结构体的定义语句中,错误的是______。
A. struct ordint x;int y;int z;struct ord a;
B. struct ordint x;int y;int z;;struct ord a;
C. struct ord int x;int y;int z;a;
D. streetint x;int y;int z;)a;
有以下程序 #include<stdio.h> #define N 2 #define M N+1 #define NUM(M+1)*M/2 main() printf("%d\n",NUM); 程序运行后的输出结果是______。
A. 8
B. 4
C. 9
D. 6
设有以下函数: void fun(int n,char*s) …… 则下面对函数指针的定义和赋值均正确的是______。
A. void(*pf)(int,char*);pf=fun;
B. void*pf();pf=fun;
C. void*pf();*pf=fun;
D. void(*pf)(int,chad;)pf=&fun;
以下结构体类型说明和变量定义中正确的是______。
A. typedef struct int n;char c;REC;
B. REC t1,t2;
C. struct REC;
D. int n;char c;);
E. REC t1,t2;
F. typedef struct REC;
G. int n=0;char c=’A’;t1,t2;
H. struct
I. int n;char c;REC;
J. REC t1,t2;