A.文件由ASCII碼字符序列組成,C語言只能讀寫文本文件
B.文件由二進制數(shù)據(jù)序列組成,C語言只能讀寫二進制文件
C.文件由記錄序列組成,可按數(shù)據(jù)的存放形式分為二進制文件和文本文件
D.文件由數(shù)據(jù)流形式組成,可按數(shù)據(jù)的存放形式分為二進制文件和文本文件
您可能感興趣的試卷
你可能感興趣的試題
以下for語句構(gòu)成的循環(huán)執(zhí)行的次數(shù)是()
#include
#define N 2
#define M N+l
#define NUM(M+1)*M/2
main()
{int i,n=0;
for(i=1;i<=NUM;i++)
{n++;printf(“%d”,n);}
printf(“\n”);}
A.5
B.6
C.8
D.9
以下程序的輸出結(jié)果是()
#include
main()
{inti:
for(i=l;i<=5;i++)
{if(i%2)
printf(“*”);
else
continue;
printf(“*”);}
printf(“$\n”);I
A.*#*#*#$
B.#*#*#*$
C.*#*#$
D.#*#*$
設有以下語句:
char str1[]= “string”,str2[8],*str3,*str4= “ string”;
則不能對庫函數(shù)strcpy(復制字符串)的正確調(diào)用的是()
A.strepy(str1,“HELLO1”);
B.strepy(str2,“HELL02”);
C.strcpy(str3, “HELL03”)
D.strcpy(str4, “HELLO4”);
以下程序的輸出結(jié)果是()
#include
union pw
{int i;char ch[2];}a;
main( )
{a.ch[0]=13;a.ch[1]=0;printf(”%d\n”,a.i);}
(注意:ch[0]在低字節(jié),ch[1]在高字節(jié)。)
A.13
B.14
C.208
D.209
設有以下語句(其中0≤i<10),則不能對a數(shù)組元素的正確引用是()
int a[10]={0,l,2,3,4,5,6,7,8,9},*p=a;
A.a[p-a]
B.*(&a[i])
C.p[i]
D.*(*(a+i))