【单选题】【消耗次数:1】
下列叙述中,错误的一条是()
scanf()函数可以用来输入任何类型的多个数据
数组名作函数参数时,也采用值传递方式
如果行参发生改变,不会改变主调函数的实参值
函数实参与行参的类型应一致
参考答案:
复制
纠错
相关题目
【判断题】 以变量名作为函数参数时,不能改变实参变量的值;以数组名作为函数参数时,可以改变实参数组的值。
①  正确
②  错误
【判断题】 以变量名作为函数参数时,实参类型是变量名;以数组名作为函数参数时,实参类型是数组名。
①  正确
②  错误
【单选题】 若用数组名作为函数调用的实参,传递给形参的是?
①  数组的首地址
②  数组中第一个元素的值
③  数组中全部元素的值
④  数组元素的个数
【单选题】 若用数组名作为函数调用的实参,传递给形参的是()。
①  数组的首地址
②  数组中第一个元素的值
③  数组中的全部元素的值
④  数组元素的个数
【单选题】 若用数组名作为函数调用的实参,则传递给形参的是(  )。
①  数组的首地址
②  数组的第一个元素的值
③  数组中全部元素的值
④  数组元素的个数
【单选题】 用数组名作为函数调用时的实参,则实际传递给形参的是()
①  数组的第一个元素值
②  数组中全部元素值
③  数组的首地址
④  数组的元素个数
【判断题】 以变量名作为函数参数时,传递的信息是变量的值;以数组名作为函数参数时,传递的信息是实参数组首元素的地址。
①  正确
②  错误
【判断题】 以变量名作为函数参数时,要求形参的类型是变量名;以数组名作为函数参数时,要求形参的类型是数组名或指针变量。
①  正确
②  错误
【单选题】 在调用函数时,如果实参是简单变量,它与对应形参之间的数据传递方式是()
①  地址传递
②  由实参传给形参,再由形参返回实参
③  值传递
④  传递方式由用户指定
【判断题】 函数的实参传递到形参有两种方式值传递和地址传递
①  正确
②  错误
【单选题】 当调用函数时,实参是一个数组名,则向函数传送的是( )。
①  数组的长度
②  数组的首地址
③  数组每一个元素的地址
④  数组每个元素中的值
随机题目
【单选题】 I went to the doctor’s yesterday. I had to wait for half an hour before he ___ see me.
①  ?can
②  ?may
③  ?might
④  ?could
【单选题】 If they ___ to do this work, he might do it some other way.
①  were
②  should
③  will
④  can
【单选题】 He was a good swimmer so he ___ swim to the river bank when the boat sank.
①  could
②  might
③  should
④  was able to
【单选题】 No sooner ___ he arrived home than he ___ to start on another journey.
①  has; was asked
②  have; were asked
③  had; is asked
④  had; was asked
【单选题】 This pencil is ______ than that one.
①  longest
②  long
③  longer
④  as long
【单选题】 This book is ______ that one, but ______ than that one.
①  as difficult as; expensive
②  as more difficult as; more expensive
③  as difficult as; more expensive
④  more difficult as; as expensive
【单选题】 I think the story is not so ______ as that one.
①  Interesting
②  interested
③  more interesting
④  most interesting
【单选题】 This box is ______ that one.
①  heavy than
②  so heavy than
③  heavier as
④  as heavy as
【单选题】 These children are ______ this year than they were last year.
①  more tall
②  more taller
③  very taller
④  much taller
【单选题】 My mother is no ______ young.
①  shorter
②  longer
③  little
④  few