题目内容

Fill in the blank with the word given below. Change the form where necessary. Each can only be used only once.7. It is well known that China is a country with rich natural _____ and a very big population.

查看答案
更多问题

Fill in the blank with the word given below. Change the form where necessary. Each can only be used only once.8. Some people believe that the earth can _____ enough food to support at least twice its present population.

Fill in the blank with the word given below. Change the form where necessary. Each can only be used only once.9. Sam _____ the gift of imagination from his family, but he lacked the driving power to take action.

Fill in the blank with the word given below. Change the form where necessary. Each can only be used only once.10. A bee that has found honey is able to _____ to other bees the information they need in order to collect the honey.

一、实验目的和要求1.掌握一维数组的定义。2.掌握二维数组的定义。3.掌握C语言数组的引用方法。4.掌握数组的输入和输出方法。二、实验内容和步骤1.编写程序,测试下列数组的定义方式是否正确,如果不正确,请说明原因并改正。(1)测试程序如下。#include int main(){int num;scanf("%d",&num);int score[num];return 0;}(2)测试程序如下。#define N 10#include int main(){int score[N];scanf("%d",&score[3]);printf("%d",score[3]);return 0;}(3)测试程序如下。#include int main(){int score[];scanf("%d",&score[1]);return 0;}(4)测试程序如下。#include int main(){int score[2*3-2];scanf("%d",&score[1]);printf("%d",score[1]);return 0;}(5)测试程序如下。#define I 3#define J 4#include int main(){int a[I][J];scanf("%d",&a[1][2]);printf("%d",a[1][2]);return 0;}(6)测试程序如下。#define N 3#include int main(){int a[][N];scanf("%d",&a[1][2]);printf("%d",a[1][2]);return 0;}

答案查题题库