Which of the following does not initialize all of the array elements to 0?
a)
int b[2][2];
b[0][0] = b[0][1] = b[1][0] = b[1][1] = 0;
b) int b[2][2] = {0};
c)
int b[2][2];
for (int i = 0; i < 2; ++i) {
for (int j = 0; j < 2; ++j) {
b[i][j] = 0;
}
}
d) all of the above initialize all of their elements to 0.
ANS: d)
6.51 Which statement is false about multidimensional arrays?
a) C supports multidimensional arrays.
b) A common use of multidimensional arrays is to arrange data into tables consisting of rows and columns.
c) To identify a particular table element requires two indices.
d) Every ANSI C system can support arrays with as many indices as the programmer chooses.
c) To identify a particular table element requires two indices.
You might also like to view...
You have used Internet search engines. List the URL of your favorite search engine and three reasons why you prefer it to others. Compare your reasons with three other classmates. Make note of any commonalties among the reasons and relate your answers to the goals of HCI design.
What will be an ideal response?
________ is a subjective measure of performance in a system and relies on human opinion.
A) QUALINET B) PDU C) QoE D) QoS
Which of the following represents the I-bar pointer?
A.
B.
C.
D.
Pick two of the user groups you identified from the last question and interview representatives from the groups to gather information about their tasks. You should listen to at least four people from each group.
For each group, list the tasks. Are there any commonalties or differences?