网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
有以下程序 #include
- A、变量C1被赋予字符a,c2被赋予回车符
- B、程序将等待用户输入第2个字符
- C、变量c1被赋予字符a,c2中仍是原有字符2
- D、变量c1被赋予字符a,c2中将无确定值
参考答案
更多 “ 有以下程序 #include main() { char c1=’1’,c2=’2’; c1=getchar(); c2=getchar(); putchar(c1); putchar(c2); } 当运行时输入:a回车后,以下叙述正确的是()A、变量C1被赋予字符a,c2被赋予回车符B、程序将等待用户输入第2个字符C、变量c1被赋予字符a,c2中仍是原有字符2D、变量c1被赋予字符a,c2中将无确定值” 相关考题
考题
以下四个程序中,完全正确的是( )。A.includeB.include main(); main() {/*pr
以下四个程序中,完全正确的是( )。A.#include<stdio.h>B.#include<stdio.h> main(); main() {/*programming*/ {/*/programming/*/ printf("programming!\n");} printf("programming!\n");}C.#include<stdio.h>D.include<stdio.h> main() main() {/*/*programming*/*/ {/*programming*/ printf("programming!\n");} printf("programming!\n");}
考题
有以下程序: include point ( char * p) {p + = 3; }main( ) char b[4] = {'a','b','c
有以下程序: #include <stdio.h>point ( char * p) { p + = 3; }main( ) char b[4] = {'a','b','c','d'} , *p=b; point(p); printf( "% c \n" , * p);A.aB.bC.cD.d
考题
有以下程序:include main ( ){ inti=0.s=0;for(;;) if( i = = 3 ‖ i = = 5 ) continu
有以下程序: #include <stdio. h> main ( ) { inti=0.s=0; for(;;) if( i = = 3 ‖ i = = 5 ) continue; if (i ==6) break; i++; s+ =i; } printf(" % d \n" ,s);程序运行后的输出结果是( )。A.10B.13C.21D.程序进入列循环
考题
有以下程序 include main( ) { printf("%d\n",NULL); } 程序运行后的输出结果是
有以下程序#include <stdio.h>main( ){ printf("%d\n",NULL); }程序运行后的输出结果是A.0B.1C.-1D.NULL没定义,出错
考题
执行以下程序后,输出号的个数是【】。 include main() {int i, j;for(i=1; i
执行以下程序后,输出号的个数是【 】。include<stdio. h>main(){ int i, j;for(i=1; i<5; i++)for(j=2; j<=i; j++)putchar('');}
考题
有以下程序: include main ( ){char s[] = "ABCD", * p;for(p=s+1;p
有以下程序: #include < stdio. h > main ( ) { char s[] = "ABCD", * p; for(p=s+1;p<s+4;p++) pfintf(" % s \n" ,p); }A.ABCD BCD CD DB.A B CC.B C DD.BCD CD D
考题
有以下程序:include main( ){ unsigned int a; int b=-1;a=b;printf(" % u", a);程序
有以下程序: #include <stdio. h> main( ) { unsigned int a; int b=-1; a=b; printf(" % u", a);程序运行后的输出结果是( )。A.-1B.65535C.32767D.-32768
考题
有以下程序:include main(){ printf("%d\n",NULL);}程序运行后的输出结果是()。A.0B.1C
有以下程序: #include<stdio.h> main() { printf("%d\n",NULL);} 程序运行后的输出结果是( )。A.0B.1C.-1D.NULL没定义,出错
考题
有以下程序: include difine F(X, Y)(X)*(Y)main(){int a=3, b=4; print("% d\n",
有以下程序: # include<stdio. h> # difine F(X, Y) (X)*(Y) main() { int a=3, b=4; print("% d\n", F(a++, b++)); } 程序运行后的输出结果是______。A.12B.15C.16D.20
考题
有以下程序:include main(){inty=9;for( ; y>0; y--)if(y%3==0) printf("%d", --y);}
有以下程序: #include <stdio.h> main() {int y=9; for( ; y>0; y--) if(y%3==0) printf("%d", --y); } 程序的运行结果是( )。A.741B.963C.852D.875421
考题
有以下程序 include main() { int y=9; for( ; y>0; y--) if(y%
有以下程序 #include <stdio.h> main() { int y=9; for( ; y>0; y--) if(y%3==0) printf("%d",--y); } 程序的运行结果是A.741B.963C.852D.875421
考题
有以下程序 include void fun(char **p) { ++p; printf("%s\n",*p);
有以下程序 #include <stdio.h> void fun(char **p) { ++p; printf("%s\n",*p); } main() { char *a[]={"Moming","Afternoon","Evening","Night"}; fun(a); } 程序的运行结果是A.AfternoonB.fternoonC.MorningD.orning
考题
有以下程序:include include main( ) {char a[ 7 ] = "a0 \0a0 \0";int i,
有以下程序:#include <stdio.h>#include <string.h>main( ) { char a[ 7 ] = "a0 \0a0 \0"; int i,j; i = sizeof(a); j = strlen(a); printf(" % d %d \n" ,i,j); }程序运行后的输出结果是( )。A.22B.76C.72D.62
考题
有以下程序:include main ( ){char a :'a',b; printf( "% c," , + + a); printf("%c
有以下程序: #include <stdio. h> main ( ) { char a :'a',b; printf( "% c," , + + a); printf("%c \n" ,b =a++); }程序运行后的输出结果是( )。A.b,bB.b,cC.a,bD.a,c
考题
有以下程序: include main( ) {char s[ ] ="159" , * p;p=s;printf( "% c", * p + +
有以下程序: #include <stdio.h> main( ) { char s[ ] ="159" , * p; p=s; printf( "% c", * p + + ); printf("%~", * p++);}程序运行后的输出结果是( )。A.15B.16C.12D.59
考题
有以下程序 include include int fun(int n) {int *
有以下程序 #include <stdio.h> #include <stdlib.h> int fun(int n) {int *p; p=(int*)malloc(sizeof(int)); *p=n; return *p; } { int a; a=fun(10); printf("%d\n",a+fun(10)); } 程序的运行结果是______。A.0B.10C.20D.出错
考题
有以下程序 include main() { char a=4; printf("%d/n,a=a
有以下程序 #include <stdio.h> main() { char a=4; printf("%d/n,a=a<<1); } 程序的运行结果是______。A.40B.16C.8D.4
考题
下列4个程序中,完全正确的是()。A.include main(); (/*programming*/ printf("programm
下列4个程序中,完全正确的是( )。A.#include<stdio.h> main(); (/*programming*/ printf("programming!\n");}B.# include<stdio.h> main() {/*/programming/*/ printf("programming!\n");}C.#include<stdio.h> main() {/*/programming*/*/ printf("programming!\n");)D.include<stdio.h> main() {/*programming*/ printf("programming!\n");}
考题
有以下程序:include main( ){ehar str[ ] [10] = { "China" ," Beijing" } , * p =
有以下程序: #include < stdio. h > main( ) { ehar str[ ] [10] = { "China" ," Beijing" } , * p = str[o]; printf( "% s \n", p + 10); }程序运行后的输出结果是( )。A.ChinaB.BeijingC.ngD.ing
考题
以下4个程序中,完全正确的是A.#include stdio.h main(); {/*programming*/ printf("programming!\n");}B.#include stdio.h main(); {/*/ programming /*/ printf("programming!\n");}C.#include stdio.h main() {/*/*programming*/*/ printf("programming!\n");}D.include stdio.h main() {/*programming*/ printf("programming!\n");}
考题
以下四个程序中,完全正确的是______。A.include main(); {/*programming*
以下四个程序中,完全正确的是______。A.#include <stdio.h> main(); {/*programming*/ printf("programming!\n");}B.#inc lude<stdio.h> main() {/*/programming/*/ printf("programming!\n");}C.#include <stdio.h> main() {/*programming*/ printf("programming!\n");}D.include<stdio.h> main() {/*/*programming*/*/ printf("programming!\n");}
考题
有以下程序: #include stdio.h main( ) { int a=7; while(a--); print[("%d\n",a); } 程序运行后的输出结果是( )。A.-lB.0C.1D.7
考题
有以下程序: include main( ) {intc = 35; printf( "% d \n" , ec); }程序运行
有以下程序: #include <stdio.h> main( ) { intc = 35; printf( "% d \n" , ec); } 程序运行后输出结果是( )。A.0B.70C.35D.1
考题
有以下程序: include main ( ) int a=3,b=4,c=5,d=2;if(a>b) if(b>c)printf("%d",
有以下程序: #include < stdio. h > main ( ) int a=3,b=4,c=5,d=2; if(a>b) if(b>c)printf("%d",d++ +1); else printf( "% d", + + d + 1 ); printf( "% d \n" ,d); 程序运行后的输出结果是( )。A.2B.3C.43D.44
考题
有以下程序:include include main(){char *p[10]={"abc","aabdfg","dcdbe"
有以下程序: #include <stdio.h> #include <string.h> main() { char *p[10]={"abc","aabdfg","dcdbe","abbd","cd"}; printf("%d\n",strlen(p[4])); } 执行后的输出结果是( )。A.2B.3C.4D.5
考题
有以下程序: include main( ){ int m =3,n =4,x; x= -m++; x=x+8/++n; prinff(" % d
有以下程序: #include <stdio. h > main( ) { int m =3,n =4,x; x= -m++; x=x+8/++n; prinff(" % d \n" ,x); } 程序运行后的输出结果是( )。A.3B.5C.-1D.-2
热门标签
最新试卷