Determine whether each of the following is true or false. If false, explain why.
1) To refer to a particular location or element within an array, we specify the name of the array and the value of the particular element.
2) An array definition reserves space for an array.
3) To indicate that 100 locations should be reserved for integer array p, you write the declaration
p[ 100 ];
4) A for statement must be used to initialize the elements of a 15-element array to zero.
5) Nested for statements must be used to total the elements of a two-dimensional array.
1) False. The name of the array and the subscript of the array are specified.
2) True.
3) False. A data type must be specified. An example of a correct definition would be:
int p[ 100 ];.
4) False. The array can be initialized in a declaration with a member initializer list.
5) False. The sum of the elements can be obtained without for statements, with one for statement, three for statements, etc.
You might also like to view...
You can use the CTRL key to select non-adjacent cells in a worksheet
Indicate whether the statement is true or false
x/2=2 /x
Use cross multiplication to • determine the value(s) of x that will make the equation true, or • determine that any value of x will make the equation true, or • determine that any value of x, except zero, will make the equation true, or • determine that no value of x will make the equation true.
You cannot perform a mail merge with a data source to print envelopes and labels.
Answer the following statement true (T) or false (F)
Before installing a Wi-Fi network, be sure to do a(n) ____________________ to locate any obstacles that need to be overcome and to determine the best location for your access points.
Fill in the blank(s) with the appropriate word(s).