首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
若有以下函数首部 int fun(double x[10], int *n) 则下面针对此函数的函数声明语句中正确的是
若有以下函数首部 int fun(double x[10], int *n) 则下面针对此函数的函数声明语句中正确的是
admin
2020-07-28
32
问题
若有以下函数首部
int fun(double x[10], int *n)
则下面针对此函数的函数声明语句中正确的是
选项
A、int fun(double , int );
B、int fun(double *, int *);
C、int fun(double *x, int n);
D、int fun(double x, int *n);
答案
B
解析
函数声明的一般形式为:类型说明符 被调函数名(类型 形参,类型 形参…); 或为:类型说明符 被调函数名(类型,类型…);由于函数首部为int fun(double x[10], int *n),因此B选项正确。
转载请注明原文地址:https://kaotiyun.com/show/jW3p777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
有以下程序voidfun(int*p,int*q){intt;t=*p;*p=*q;*q=t;*q=*p;}main(){inta=0,b=9;fun(&a,&b);printf("%d%d\n",a,b);}程序的输出结果是
设二叉树的后序序列为DGHEBIJFCA,中序序列为DBGEHACIFJ。则前序序列为
下面不属于软件需求分析阶段任务的是
有以下程序intfun(intn){if(n==1)return1;Elsereturn(n+fun(n-1));}main(){intx;scanf("%d",&x);x=fun(x);printf("%d\n",x);}执行
有以下程序,在VC6平台上编译运行,程序运行后的输出结果是#include<stdio.h>main(){ints,t,A=10;doubleB=6;s=sizeof(A);t=sizeof(B);printf("%d,%d\n",s,t)
下列叙述中错误的是
将E—R图转换为关系模式时,实体和联系都可以表示为
下面选项中关于“文件指针”概念的叙述正确的是
当用户要求输入的字符串中含有空格时,应使用的输入函数是
有以下程序#include<stdio.h>intfun(chars[]){char*p=s;while(*P!=0)p++;return(p-s);}main(){printf("%d\n",fun("0ABCDEF"));}程序运行后的
随机试题
A.肝细胞广泛水样变性、点灶状坏死B.肝细胞广泛脂肪变性、点灶状坏死C.肝细胞碎片坏死D.肝细胞亚大片坏死E.肝细胞大片坏死(2002年)急性普通型肝炎的病变特点
以下何项不是癫证的表现
国际标准化组织推荐的噪声强度卫生学评阶指标是
体内合成N-亚硝基化合的主要部位
化疗药剂量计算的主要依据是()
[2008年第25题]博物馆采光设计不宜采取下列哪种措施?
纳税人改变单位名称或法人代表不需要办理税务登记。 ( )
下列关于准备金的24个半月提存法,表述正确的有()。
橘生淮南则为橘,生于淮北则为枳。外部环境对人的影响虽不是根本的,但也是十分重大的。这句话意味着( )。
Youwillhearfiveshortrecordingsaboutdeliveryproblems.Foreachrecording,decidewhichproblemthespeakertalksabou
最新回复
(
0
)