單項選擇題

#includeint main(){char a,b;int s;printf("please input a and b:\n");a=getchar();b=getchar();s=a+b;printf("a=%c,b=%c",a,b);return 0;}程序運行時從鍵盤輸入:1<空格>2<回車>

A.a=1,b=2
B.輸出亂碼
C.a=1,b=
D.a= ,b=2
點擊查看答案&解析

你可能感興趣的試題




以下程序的運行結(jié)果是【 】。 include main() { FILE *fp; int a[10]={1,2,3,0,0},i; fp=fopen("d2.

以下程序的運行結(jié)果是【 】。 include main() { FILE *fp; int a[10]={1,2,3,0,0},i; fp=fopen("d2.dat","wb"); fwtite(a,sizeof(int),5,fp); fwrite(a,sizeof(int),5,fp); fclose(fp); fp=fopen("d2.dat","rb"); fread(a,sizeof(int),10,fp); fclose(fp); for(i=0;i<10;i++)printf("%d",a[i]); }



&8226;Read this part of a letter from the manager of a conference center.

Thank you for your telephone call inquiring about rooms for a sales training course. There is a conference room available on 23 October, 2006 which holds 40 people.
If this is suitable, please confirm the booking in writing as soon as possible and also tell me how many trainees will attend the course.
&8226;Write a letter:
confirming the date of the booking
telling the manager how many trainees will attend
informing him which conference equipment you will need
asking if your company will receive its usual 10% discount.
&8226;Write 60 - 80 words.
&8226;Write on your Answer Sheet. Do not include any postal addresses.