首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
阅读下列程序说明和C代码,把应填入其中n处的字句写在答卷的对应栏内。 【说明】 函数create能够建立具有任意行和任意列的动态二维整数数组。 【函数4.1程序】 #include“stdio.h” int * * creat
阅读下列程序说明和C代码,把应填入其中n处的字句写在答卷的对应栏内。 【说明】 函数create能够建立具有任意行和任意列的动态二维整数数组。 【函数4.1程序】 #include“stdio.h” int * * creat
admin
2009-05-15
15
问题
阅读下列程序说明和C代码,把应填入其中n处的字句写在答卷的对应栏内。
【说明】
函数create能够建立具有任意行和任意列的动态二维整数数组。
【函数4.1程序】
#include“stdio.h”
int * * create(int row, int col )
{ int * * x,i;
x=(int * *) (1);
for( (2) )
x
=(int *)malloc(col * sizeof(int));
(3);
}
【函数4.2说明】
函数main()能够判断输入年是否为闰年。
【函数4.2程序】
main()
{int year,n;
scanf(“input year %d”,&year);
n=((4)||(5));
if(n==1)printf(“%d is a leap year\n”,year);
else printf(“%d is not a leap year\n”,year);
}
选项
答案
(4)year%4==0&&year% 100! =0
解析
当年数可以被4整除而且不是整百年时,该年为闰年。如公元304年是闰年,而公元300年不是闰年。
转载请注明原文地址:https://jikaoti.com/ti/9wW7FFFM
本试题收录于:
程序员上午基础知识考试题库软考初级分类
0
程序员上午基础知识考试
软考初级
相关试题推荐
阅读以下说明,回答问题。[说明]在一台计算机上安装完成WindowsServer2003服务器及相应的服务组件。如果希望在该服务器上D盘(卷)中实现磁盘配额功能,则该卷必须是什么样的文件系统?
阅读以下说明,回答以下问题,将解答填入答题纸对应的解答栏内。【说明】某企业网络拓扑结构如图2.1所示,通过WindowsServer2003系统搭建了Web、DNS、DHCP和邮件服务器(为内网用户提供服务),其中DHCP服务器分配的地址范围如图2.
试题一阅读以下说明,回答【问题1】至【问题4】,将解答填入答题纸对应的解答栏内。【说明】某小公司网络拓扑结构如图1-1所示,租用了一条ADSL宽带来满足上网需求,为了便于管理,在Server2上安装DHCP服务提供IP地址动态
阅读下列说明,回答问题1和问题2,将解答填入答题纸的对应栏内。【说明】某公司用ASP+Access数据库开发了学生管理系统,用户登录界面如图4一1所示:下面是登录系统中check.asp文件的部分代码,请根据login.asp代码将其补充完整。
阅读以下说明,回答问题1~问题5,将解答填入对应的答案栏内。【说明】图2.143是某小型公司网络拓扑结构,其中代理服务器的两块网卡的设置已在图中标出。该代理服务器使用基于Linux的Squid代理服务器,下面为该服务器中文件
(72)is a clickable string or graphic that points to another Web page or document.
Integration(73)is the process of verifying that the components of a system work together as described in the program design and
使用Word时,若要创建每页都相同的页脚,则可以通过(14)按钮,切换到页脚区域,然后输入文本或图形。要将D盘中当前正在编辑的Wang1.doc文档复制到U盘中,应当使用(15)。
在Excel表处理软件中,(16)是当公式在复制或移动时会根据移动的位置自动调节公式中引用单元格的地址。假设单元格A1、A2、B1和B2内容如下图所示,并在 C1中输入公式“=$A$1+$B$1”,并将公式复制到C2,那么C2的内容为(17)。
为了保障数据的存储和传输安全,需要对一些重要数据进行加密。由于对称密码算法(49),因此特别适合对大量的数据进行加密。
随机试题
审计报告的基本类型有()
我国的基本政治制度包括()
美国公民罗伯特在中国境内居留期间,未持有效旅行证件前往不对外国人开放的地区旅行,被当地县公安机关处以7天拘留处罚。罗伯特对此不服,前往当地一家律师事务所进行咨询。以下咨询意见正确的是:
下列会计事项会使当期所得税费用减少的有()。
下列各项中,应该计提折旧的固定资产包括()。
甲公司2×11年归属于普通股股东的净利润为1500万元,当年年初发行在外的普通股股数为1000万股,7月1日增发600万股。2×12年3月30日甲公司之前发行的400万份认股权证全部行权,甲公司因此增发400万股普通股,4月1日甲公司宣告发放股票股利,以2
()应用广泛,可用于基层生产工人的培训。
近年来,为避免煤矿安全事故的发生,很多煤矿主都加强了安全生产的重视程度。公开资料显示:2000年以前,中国煤矿事故每年死亡上万人。从2000年开始,每年事故死亡人数开始控制在7000人以下;2003年事故死亡人数为6434人;2004年死亡6027人;20
诺言:履行()
Morethan30,000driversandpassengerswhoseatinthefrontofthevehiclesarekilledorseriouslyinjuredeachyear.At
最新回复
(
0
)