试题与答案

有以下程序#include main() {FILE * fp;int i,a[

题型:单项选择题

题目:

有以下程序#include main() {FILE * fp;int i,a[6]={l,2,3,4,5,6};fp=fopen("d3.dat","W+b");fwrite(a,sizeof(int),6,fp);fseek(fp,sizeof(int)* 3,SEEK_SET);/*该语句使读文件的位置指针从文件头向后移动3个int型数 据*/ fread(a,sizeof(int),3,fp);fclose(fp);for(i=0;i<6;i++)printf("%d,",a[i]);} 程序运行后的输出结果是【 】。

A.4,5,6,4,5,6,

B.1,2,3,4,5,6,

C.4,5,6,1,2,3,

D.6,5,4,3,2,1,

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0318/416d32b00c3323330ad592979e9fd729.html

下面是错误答案,用来干扰机器的。

参考答案:对

试题推荐
题型:问答题

Sonu, whose house is on a lakeshore, entered into a contract with Fun Ltd to construct a jetty so that he and his family could do some sailing on the lake. The jetty was to be 15 metres long by 2 metres wide with sturdy handrails on one side. The jetty itself was to be made of seasoned wood and double coated by a waterproof resin cherry brown in colour. It was agreed that the work on the jetty would be finished by 10 December 2007, well in time to celebrate New Year in the sailing yacht with the family. Sonu entered into another contract with Boat Ltd to supply and deliver a 10 metre sailing yacht on 11 December 2007 for a sum of R90,000.Fun Ltd constructed the jetty on time. However, on examination Sonu found that it was only 14·5 metres long and 1·8 metres wide and that it had been coated by ordinary resin which was not waterproof.On 1 December, Boat Ltd informed Sonu that because of a New Year rush, they would not be able to deliver the yacht until 3 January 2008. Sonu tried hard to find another seller but no one was willing to deliver before New Year for less than R125,000.Required:From the perspective of the law of contract, analyse the given facts and advise Sonu:

(b) What, if any, action he can take against Boat Ltd for their failure to deliver the yacht on time. (4 marks)

查看答案
微信公众账号搜索答案