当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

设int型变量a b float型变量x y char型变量ch均已正确定义并赋值 则正确的swith语句是()。A.switc


设int型变量a、b,float型变量x、y,char型变量ch均已正确定义并赋值,则正确的swith语句是()。

A、switch (x+y) {...}

B、switch (ch+1) {...}

C、switch ch {...}

D、switck (a+b) {...}

参考答案
您可能感兴趣的试题
  • 设x,y,t均为int型变量,执行语句: x=y=3; t=++x||++y; 完成后,y的值为 A.不确定 B.4

  • 设变量a是int型,f是float型,i是double型,则表达式10+′a′+i*f值的数据类型为A.int B.float C.do

  • 设x y t均为int型变量 则执行语句:x=y=3;t=++x||++y;后 y的值为()。A.不定值B.4C.3D.1

  • 设int型变量a b float型变量x y char型变量ch均已正确定义并赋值 正确的switch语句是()。A.switch

  • 设x为float型变量 y为double型变量 a为int型变量 b为long型变量 c为char型变量 则表达式 x+y*

  • 设x和y均为int型变量 则执行下面的循环后 y值为()。#include void main(){int x y;f