- ..clause 1..: Basic knowledge
- ..clause 2..: Program readout
- Memo
- ..clause 4..: Description type
- ..clause 5..: Basic knowledge(example solution)
- ..clause 6..: Program readout(example solution)
- Memo(example solution)
- ..clause 8..: Description type(example solution)
Example solution
[ 1-1 ]
What is called the method of the summary of the variable of the same type handling?
Example solution
[ 2-1 ]
What does the following program calculate?
Judging from the content of processing and the variable identifier, answer.
#include <stdio.h> int main(void) { int data[] = {79,42,39,79,13,75,19}; int i,sum = 0,avg; for (i = 0;i < sizeof(data) / sizeof(data[0]);i++) { sum += data[i]; } avg = sum / (sizeof(data) / sizeof(data[0])); printf("%d\n",avg); return 0; }
Example solution
[ 3-1 ]
Make the program that displays ten input numerical values at the end.
Example solution
[ 4-1 ]
Explain concisely what the maximum advantage of the array is.
Problem
[ 1-1 ]
Array
Problem
[ 2-1 ]
The mean value is calculated.
Problem
[ 3-1 ]
- Though the loop is turned to reverse order when it displays it here#include <stdio.h> int main(void) { int data[10]; int i; Turn..numerical value..input. scanf("%d",&data[i]); } for (i = 9;i >= 0;i--) { printf("%d ",data[i]); } printf("\n"); return 0; }
You may reverse only the number displayed in the nether way if it is cramped.
for (i = 0;i < 10;i++) { printf("%d ",data [9 - i]); }
Problem
[ 4-1 ]
A large amount of variable should be able to be treated collectively by specifying the number by the variable.