Answer the following questions true (T) or false (F)
1. In a sorting an array, the items in the array are rearranged so that
for all j and k, if j < k, then array[j]<=array[k]
2. In the definition, double d[10] = {0.0}; only d[0] is initialized to zero, the rest are uninitialized, just like x in the definition double x;
1. True
Explanation: This is sorting into increasing order. This ignores sorting into decreasing order. Care should be taken not to compare elements with index values out of the range 0 to declared_size-1
2. False
Explanation: The ISO C++ Standard requires that a Standard compliant compiler with an initializer list initialize the excess array elements to a zero value appropriate to the base array type. Most compilers comply.
You might also like to view...
Which Cisco IOS statement would match all traffic?
A) access-list 1 permit all B) access-list 1 permit any C) access-list 1 permit 0.0.0.0 0.0.0.0 D) access-list 1 permit 255.255.255.255 255.255.255.255
One of the disadvantages of qualitative risk analysis is that all results are subjective
Indicate whether the statement is true or false.