以下程序的輸出結(jié)果是()
#include
main()
{inti:
for(i=l;i<=5;i++)
{if(i%2)
printf(“*”);
else
continue;
printf(“*”);}
printf(“$\n”);I
A.*#*#*#$
B.#*#*#*$
C.*#*#$
D.#*#*$
您可能感興趣的試卷
你可能感興趣的試題
設(shè)有以下語句:
char str1[]= “string”,str2[8],*str3,*str4= “ string”;
則不能對庫函數(shù)strcpy(復(fù)制字符串)的正確調(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
設(shè)有以下語句(其中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))
A.自動(auto)
B.靜態(tài)(static)
C.寄存器(register)
D.外部(extern)
以下程序的輸出結(jié)果是()
#include
main()
{int a,b,d=241;
a=d/100%9;
b=(-1)&&(-1);
printf(“%d,%d\n”,a,b);}
A.6,1
B.6,0
C.2,1
D.2,0

最新試題
若有以下說明:int [10]={1,2,3.4,5,6,7,8,9,10},*p= a;則數(shù)值為6的表達(dá)式是()
執(zhí)行以下程序int y=2; do{y-- ;} while( --y)循環(huán)體將執(zhí)行()
編程:輸入10個整數(shù),輸出其平均值。
若有以下語句:int u=020,v=0x20,w=‘\20’;printf(“%d,%d,%d\n”,u,v,w);則輸出結(jié)果是()
寫出程序執(zhí)行結(jié)果
將文本文件fin.dat中的數(shù)字字符找出并寫入文本文件fnum.dat中
若有以下語句:int **pp,*p, a=10,b=20; pp=&p; p=&a; p=&b;printf("%d\n" ,*p,**pp) ;則輸出結(jié)果是()
C語言中以下說法正確的是()
設(shè)有以下定義:int a[4][3]= 11,3,5.9.11,13,15,17,19,21,23,251 ;int( *pr)[3]=a,*p=a[0] ;則下列能夠正確表示數(shù)組元素a[1][2]的表達(dá)式是()
標(biāo)準(zhǔn)函數(shù)fgets(s,n,f)的功能是()