【单选题】【消耗次数:1】
下述是C语言中有关变量定义的几个说法,正确的是:()
变量可以不定义直接使用
一个说明语句只能定义一个变量
几个不同类型的变量可在同一语句中定义
变量可以在定义时进行初绐化
参考答案:
复制
纠错
相关题目
【单选题】 如果一个函数位于C程序中定义的第一个函数,在该函数体内说明语句后的复合语句中定义了一个变量,则该变量(  )。
①  为全局变量,在本程序文件范围内有效
②  为局部变量,只在该函数内有效
③  为局部变量,只在该复合语句中有效
④  定义无效,为非法变量
【单选题】 如果在一个函数的复合语句中定义了一个变量,则该变量( )。
①  只在该复合语句中有效
②  在该函数中有效
③  在本程序范围内均有效
④  为非法变量
【单选题】 .如果在一个函数的复合语句中定义了一个变量,则该变量( )。
①  只在该复合语句中有效
②  在该函数中有效
③  在本程序范围内均有效
④  为非法变量
【单选题】 如果一个函数位于C程序文件的上部,在该函数体内说明语句后的复合语句中定义了一个变量,则该变量
①  为全局变量,在本程序文件范围内有效
②  为局部变量,只在该函数内有效
③  为局部变量,只在该复合语句中有效
④  定义无效,为非法变量
【单选题】 假定k是一个double类型的变量,则定义变量p的正确语句为( )。
①  double p=
②  double *p=
③  double
④  char *p=”Thank you!”;
【单选题】 假定k是一个double类型的变量,则定义变量p的正确语句为( )。
①  double p=
②  double *p=
③  double
④  char *p=”Thank you!”;
【单选题】 假定k是一个double类型的变量,则定义指向k的变量p的正确语句为?
①  double p=
②  double *p=
③  double
④  char *p= Thank you!
【单选题】 以下的变量定义语句中,合法的是( )
①  float _*5 = 123.456F;
②  byte $_b1 = 12345;
③  int _long_ = 123456L;
④  double d = Double.MAX_VALUE;
【单选题】 已定义c为字符型变量,则下列语句中正确的赋值语句是()
①  c='66';
②  c="66"
③  c=66;
④  c="B"
【单选题】 已定义c为字符型变量,则下列语句中正确的是()
①  c=97;
②  c="97";
③  c="a";
④  c=97;
随机题目
【单选题】 The ( )situation for this country is promising.
①  overall
②  wholly
③  completely
④  maximal
【单选题】 Lets toss a ( )to decide who should go.
①  paper
②  coin
③  trunk
④  water
【单选题】 Shes an easy ( ) for their criticisms.
①  tariff
②  tarnish
③  talent
④  target
【单选题】 Theyre trying to ( ) this math problem.
①  figure up
②  figure on
③  figure out
④  figure in
【单选题】 There has been an atmosphere of ( ) around here for a few days now.
①  anticipation
②  greeting
③  knowledgw
④  knowing
【单选题】 The( ) between the parts of the novel is apparent.
①  continuity
②  lasting
③  continuous
④  continue
【单选题】 Without them you will not be able to( ) the tasks
①  fulfillment
②  fulfil
③  fulfilled
④  fulfilling
【单选题】 Shes very( )of the coming danger.
①  knowing
②  conscious
③  got
④  heard
【单选题】 Please show your( ) card before entering.
①  identity
②  indentify
③  inendifying
④  identified
【单选题】 The children all have very different( ) .
①  personalities
②  persons
③  private
④  humans