单项选择题

在C语言中,函数返回值的类型最终取决于【 】。

A.函数定义时在函数首部所说明的函数类型
B.return语句中表达式值的类型
C.调用函数时主调函数所传递的实参类型
D.函数定义时形参的类型
<上一题 目录 下一题>
热门 试题

单项选择题
程序中对fun函数有如下说明: void *fun( );此说明的含义是( )。
A.fun了数无返回值
B.fun函数的返回值可以是任意的数据类型
C.fun函数的返回值是无值型的指针类型
D.指针fun指向一个函数,该函数无返回值
单项选择题
以下选项中不能正确把c1定义成结构体变量的是( )。
A.typedef struct   { int red;    int green;    int blue;   } COLOR;      COLOR cl;
B.struct color cl   { int red;   int green;    int blue;   }
C.struct color   { int red;   int green;   int blue;   } cl;
D.struct   { int red;    int green;    int blue;   } cl;
相关试题
  • 以下程序的功能是按顺序读入10名学生4门...
  • 有以下程序#include void fun(int a,...
  • 有以下程序int f1 (int x,inty){re...
  • 有以下程序 #include main(){FILE ...
  • 有以下程序#include main() {FILE ...