网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

如果定义有short,s;byte,b;char,c,则表达式s*b+c的类型为()

  • A、char
  • B、short
  • C、int
  • D、byte

参考答案

更多 “如果定义有short,s;byte,b;char,c,则表达式s*b+c的类型为()A、charB、shortC、intD、byte” 相关考题
考题 若已定义char s[10]则在下面表达式中不表示s[1]地址的是()。 A.s+1B.s++C.&s[0]+1D.&s[1]

考题 已知如下定义: String s = "story"; 下面哪些表达式是合法的?() A.s += "books";B.char c = s[1];C.int len = s.length;D.String t = s.toLowerCase();

考题 下列定义变量错误的是( )。A.char s="23";B.short i=100;C.double d;D.String str=-"wh are me!";

考题 若有以下定义,则不能代表字符。的表达式是______。 char s[20]="programming",*ps=s;A.ps+2B.s[2]C.ps[2]D.ps+=2,*ps

考题 自动类型转换是按优先关系从低级数据转换成高级数据,规定的优先次序是( )。A.byte, short, char→int→long→float→doubleB.float→int→long→byte, short, char→doubleC.int→long→float→double→byte, short, charD.double→int→float→long→byte, short, char

考题 有以下程序(说明:字母A的ASCIl码值是65): #includestdio.h void fun(char*s) {while(*s) {if(*s%2)printf("%C",*s); s++; } } main( ) {char a[]="BYTE"; 。 Fun(a);printf("\n"); } 程序运行后的输出结果是( )。A.BYB.BTC.YTD.YE

考题 若有定义语句:char s[10]="1234567\0\0";,则strlen(s)的值是______。A.7B.8C.9D.10

考题 有定义语句int b;char c[10];,则正确的输入语句是 ______。A.scallf("%d%s",b,c);B.scallf("%d %s",b,c);C.scanf("%d %s",b,c)D.scanf("%d%s",b,c);

考题 设有定义:char s[12]={"hello"},则cout<<strlen(s)的输出是 ______。A.5B.6C.11D.12

考题 有以下程序(说明:字母A的ASCII码值是65)#includestdio.hvoid fun(char*S){while(*s){if(*s%2)printf(“%c”,*s);S++;}}main(){char a[]=“BYTE”:fun(a);printf(“\n”);}程序运行后的输出结果是A.BYB.BTC.YTD.YE

考题 若有以下定义: char s[20]="programming",*ps=s; 则不能代表字符o的表达式是_______。A.ps+2B.s[2]C.ps[2]D.ps+=2,*ps

考题 自动类型转换规定的优先次序是( )。A.short,byte,char→long→int→float→doubleB.short,byte,char→int→long―float→doubleC.byte,short,char→long→int→float→doubleD.byte,short,char→int→long→float→double

考题 若有byte b=6;short s=20;则表达式b+s的值的类型是()。A.byteB.intC.shortD.char

考题 若有char c='8';short s=20;则表达式c+s的值的类型是()。A.charB.shortC.intD.byte

考题 若有float f=2.6f;short s=20;则表达式f+s的值的类型是()。A.floatB.shortC.intD.byte

考题 设有定义语句“char s[]="123";”,则表达式“s[3]”的值是 ( )A.’1’B.’3’C.0D.语法出错

考题 以下代码中变量result的可能类型有哪些?byte b = 11;short s = 13;result = b * ++s; A.byte, short, int, long, float, doubleB.boolean, byte, short, char, int, long, float, doubleC.byte, short, char, int, long, float, doubleD.byte, short, charE.int, long, float, double

考题 串的操作函数str定义为: int str(char*s){ char*p=s; while(*p!=’\0')p++; return p=s; } 则str("abcde")的返回值是 ( )A.3B.4C.5D.6

考题 下面哪个语句是正确的()A、short s=256;B、String s=‘Helloworld’;C、int x=012;D、char c=“a”;

考题 若有charc=’8’;shorts=20;则表达式c+s的值的类型是()A、charB、shortC、intD、byte

考题 如果定义有double,x;float,y;int,m,则表达式x*y-m的类型为()A、doubleB、floatC、intD、short

考题 若有byteb=6;shorts=20;则表达式b+s的值的类型是()A、byteB、intC、shortD、char

考题 若有定义char s[10];则在下面表达式中不表示s[1]的地址的是()A、s+1B、s++C、s[0]+1D、s[1]

考题 若有定义:char s[ ]="china"; 则Turbo C系统为数组s开辟()个字节的内存单元.

考题 若有floatf=2.6f;shorts=20;则表达式f+s的值的类型是()A、floatB、shortC、intD、byte

考题 单选题如果定义有short,s;byte,b;char,c,则表达式s*b+c的类型为()A charB shortC intD byte

考题 单选题有以下程序(说明:字母A的ASCII码值是65):#include void fun(char *s){ while(*s) {  if(*s%2)printf(%c,*s);  s++; }}main(){ char a[]=BYTE; fun(a); printf();}程序运行后的输出结果是(  )。A BYB BTC YTD YE