問題一覧
1
* in the previous code, let n = 4 in the declaration stage, the index will be
3,2,1,0
2
* the function in the previous code has two parameters
array and variable
3
* let n= 2, in the declaration the function, the value of i in iteration 2 is 3
False
4
* to print elements of arr[n] must include loop
True
5
declaration and calling the function
declaration and calling the function
6
* the previous function is
return type
7
* the previous code considers declaration function only
False
8
* in the previous code, the max means
variable for containing the largest value
9
* largest in the previous code is name of variable
False
10
* ;in the previous code, max = arr[i]
the value in the position of size array-1 is assigned in max
11
* let n=3, for(i=1; i<2; i++)
False
12
* in the previous code, let n = 3 in declaration stage the value of i in the end of second iteration is
3
13
* the name of function in the previous code is
largest
14
* the datatype of function in the previous code is
int
15
* max = arr[0]; means the value of max is zero
False
16
* let n=2, the index of arr will be 0,1,2
False
17
* let n=2, arr[0] =8, arr[1]= 5, max number =5
False
18
*in definition of function, the function returns float
False
19
* call the function in previous code () within int main
True
20
* cin>>n; means print on the screen n
False
21
* let n= 3, there are three iterations
True
22
*in the previous code, n is declared in two scopes
True
23
* in the previous code, statement of calling function is
largest(arr, n)
24
* in the previous code, let n = 3 in execution stage, the value of i in the beginning second iteration is
1
25
* the function in previous code has one parameter
False
26
* in the previous code, let n = 3 in execution stage, the value of i in the end second iteration is
2
27
* calling function is
function name(its parameters)
28
* if the function in general does not return value, we can use
void word
29
* calling the function within
main ()