数字字符'0'的ASCII值为48,若有以下程序:include main( )char a='1',b ='2';printf( " 数字字符'0'的ASCII值为48,若有以下程序: #include <stdio.h> main( ) char a='1',b ='2'; printf( "% c,",b + + ); printf(" % d \n" ,b - a); } 程序运行后的输出结果是( )。A.3,2B.50,2C.2,2D.2,50

数字字符'0'的ASCII值为48,若有以下程序:include main( )char a='1',b ='2';printf( "

数字字符'0'的ASCII值为48,若有以下程序: #include <stdio.h> main( ) char a='1',b ='2'; printf( "% c,",b + + ); printf(" % d \n" ,b - a); } 程序运行后的输出结果是( )。

A.3,2

B.50,2

C.2,2

D.2,50


相关考题:

数字字符0的ASCⅡ值为48,若有以下程序: main() { char a='1',b='2'; printf("%c,",b++); printf("%d\n",b-A); } 程序运行后的输出结果是( )。A.3,2B.50,2C.2,2D.2,50

数字字符0的ASCII值为48,运行下列程序的输出结果是( )。 main() { char a='1',b='2'; printf("%c,",b++); printf("%d\n",b-A); }A.3,2B.50,2C.2,2D.2,50

以下程序用以删除字符串中所有的空格,请填空。 include main() {char s[100]={"Our teac 以下程序用以删除字符串中所有的空格,请填空。include<stdio.h>main(){char s[100]={"Our teacher teach C language!"};int i,j;for(i=j=0;s[i]!='\0';i++)if(s[i]!=''){( )}s[j]='\0';printf("%s\n",s);}

有以下程序:includeunion pw{int i; char ch[2];}a;main(){a.ch[0]=13;a.ch[1]=0;prin 有以下程序: #include<stdio.h> union pw { int i; char ch[2]; }a; main() { a.ch[0]=13;a.ch[1]=0;printf("%d\n",a.i);} 程序的输出结果是( )。A.13B.14C.208D.209

若有如下程序; main() {char *p="china"; p+=1; printf("%d\n",p); } 则程序运行后的输出结果是 ( )A.chinaB.字符h的地址C.hinaD.字符h的ASCII码值

已知字符A的ASCII代码值为65,以下程序运行时,若从键盘输入:B33。则输出结果是______。 incl 已知字符A的ASCII代码值为65,以下程序运行时,若从键盘输入:B33<回车>。则输出结果是______。 #include "stdio.h" main() { char a,b; a=getchar();scanf("Xd",b); a=a-'A'+'0';b=b*2; printf("%c%c\n",a,b); }A.2 BB.1 BC.3 BD.4 B

下列程序的功能:对输入的一行字符中的数字字符的字面值累加,输出此累加和,请填空。include<stdio.h>include<ctype.h>main(){ char c;int a,s=0;while(______)if(isdigit(c)){a=c-'0';s+=a;}printf("s=%d",s);}

数字字符0的ASCII值为48,若有以下程序 main() { char a='1',b='2'; printf("%c,b++); printf("%d\n",b-a); } 程序运行后的输出结果是______。A.3,2B.3,1C.2,1D.2,2

以下程序段的输出结果为()。charastr[5]="1234";char*pstr=astr;printf("%c",pstr[1]-'0'); A.ASCII码值为2的字符B.ASCII码值为1的字符C.2D.1

下列程序执行的输出结果是()。 include main() {char a[2][4];strcpy(a,"are");strcpy( 下列程序执行的输出结果是( )。 #include<stdio.h> main() { char a[2][4]; strcpy(a,"are");strcpy(a [1],"you"); a[0][3]=''; printf("%s\n",a); }A.areyouB.youC.areD.

数字字符0的ASCII值为48,若有以下程序: main() { char a='1',b='2'; printf("%c,",b++); printf("%d\n",b-a); } 程序运行后的输出结果是 ______。A.3,2B.50,2C.2,2D.2,50

下列程序段的运行结果是()。 include void main() {char str[]="ABC",*p=str; printf(" 下列程序段的运行结果是( )。#include<stdio.h>void main(){ char str[]="ABC",*p=str;printf("%d\n",*(p+3) );}A.67B.0C.字符'C'的地址D.字符'C'

有以下程序: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

已知字符'0'的ASCII码的十进制数为48,并且数组的第0个元素在低位,有以下程序includema 已知字符'0'的ASCII码的十进制数为48,并且数组的第0个元素在低位,有以下程序 #include<stdio.h> main() { union{int i[2];long k:char c[4];}r,*s=r; s->i[0]=0x39;s->i[1]=0x38;printf("%c\n",s->c[0]); } 程序运行后的输出结果是 ( )A.39B.9C.38D.8

有以下程序inc1udevoid fun(char*s){while(*s) {if(*s%2=0) printf("%c",*s); s++ }}m 有以下程序 #inc1ude<stdio.h> void fun(char*s) { while(*s) { if(*s%2=0) printf("%c",*s); s++ } } main() { char a[]={"good"}; fun(A) ; prntf("n\"); } 注意:字母a的ASCII码值为97,程序运行后的输出结果是______。A.dB.goC.godD.good

(C语言)数字字符0的ASCII值为48,若有以下程序main(){char a='1',b='2';printf("%c,",b++);printf("%d\n",b-a);}程序运行的输出结果是A、3,2B、50,2C、2,2D、2,50

以下程序(程序左边的数字为符加的行号)。1include2include3main()4{char s[]=" 以下程序(程序左边的数字为符加的行号)。 1#include<str.h> 2#include<stdio.h> 3main() 4{ char s[]="string"; 5puts(s); 6strcpy(s,"hello"); 7printf("%3s\n",s);}A.没有错B.第1行有错C.第6行有错D.第7行有错

有以下程序 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

数字字符0的ASCⅡ值为48,若有以下程序 main() {char a='1',b='2'; printf("%c",b++); printf ("%d\n",b-a); } 程序运行后的输出结果是 ______。A.32B.502C.22D.2,50

数字字符0的ASCII值为48,运行以下程序的输出结果是( )。 main ( char a=1,b=2; printf("%C,",b++);printf("%d\n",b—a);}A.3,2B.50,2C.2,2D.2,50

已知字符0的ASCII码为十六进制的30,现有程序如下:includemain(){union{ unsigned char 已知字符0的ASCII码为十六进制的30,现有程序如下: #include <stdio.h> main() { union{ unsigned char c; unsigned int i[4]; }z; z.i[0]=0x39; z.i[1]=0x36; printf("%c\n",z.c); } 此程序的输出结果是( )。A.6B.9C.0D.3

下面程序的运行结果是 ( ) include include main( ) { char * a=" 下面程序的运行结果是 ( ) # include<stdio.h> # include<string.h> main( ) { char * a="AbcdEf",* b="aBcD" a + +;b + +; printf("%d\n",strcmp(a,b)); }A.0B.负数C.正数D.无确定值

下列程序段的运行结果是()。includevoid main(){ char str[]="ABC",*p=str;printf("%d\ 下列程序段的运行结果是( )。#include<stdio.h>void main(){ char str[]="ABC",*p=str; printf("%d\n",*(p+3));}A.67B.0C.字符'C'的地址D.字符'C'

下面程序段的输出为( )。 include "stdio.h" main { printf("%d\n",122); }A.0SXB 下面程序段的输出为( )。 #include "stdio.h" main { printf("%d\n",122); }A.0B.47C.48D.24

有以下程序:include main(){unsigned char a,b; a=413; b=43;printf("%d%d\n",a, 有以下程序: #include <stdio.h> main() { unsigned char a,b; a=413; b=43; printf("%d%d\n",a,b); } 执行后的输出结果是( )。A.7 0B.0 7C.1 1D.43 0

(8)有以下程序(说明:字符0的ASCII码值为48)#include stdio.hmain(){ char c1,c2;scanf("%d",c1);c2=c1+9;printf("%c%c\n",c1,c2);}若程序运行时从键盘输入48回车,则输出结果为 【8】 。

单选题有以下程序:#include main(){ char s[]=rstuv; printf(%c,*s+2);}程序运行后的输出结果是(  )。AtuvB字符t的ASCII码值CtD出错