一.填空
1、 are used to document a program and improve its readability.
2、What, if anything, prints when each of the following C statements is performed?
If nothing prints, then answer “nothing. ”
Assume x = 2 and y = 3.
a) printf( "%d = %d", x + y, y + x );
b) z = x + y;
A location in the computer's memory that may contain different values at various
times throughout the execution of a program is called
a
Write a single pseudocode statement that indicates :Assign the sum of variables
x, y, and z to variable p.
The solution to any problem involves performing a series of actions in a specific
A synonym for procedure is
7、 State which values of the control variable x are printed by each of the following
for statements:
a)for ( x = 2; x <= 13; x += 2 )
printf( "%d\n", x );
b) for ( x = 3; x <= 15; x += 3 )
printf( "%d\n", x );
8、 Show the value of x after each of the following statements is performed:x=7.5
a) x = fabs( x);
b) x = floor( x);
C stores lists of values in
10、 The contents of a particular element of an array is called the of
that element.
11、The name of the element in row 3 and column 5 of array d is .
12、Write statements to accomplish each of the following:
a) Display the value of the seventh element of character array f.
b) Copy array a into the first portion of array b. Assume double a[ 11 ], b[ 34 ];
13、Consider a 2-by-5 integer array t.
a) Write a definition for t.
b)
如果觉得《c语言完整版 pdf (完整版)C语言技术与应用.pdf》对你有帮助,请点赞、收藏,并留下你的观点哦!