Answer the following statements true (T) or false (F)

1. If b is an array with type int elements, then the statement
b += 5;
adds five to each element of b.
2. If b is an array with type int elements and the value of b[4] is 3, then the statement
printf("%d\n", b[b[4] - 1]);
displays one less than the value of b[3].
3. If b is an array of integer elements, then the statement
b[3] *= 2;
doubles the value of b[3].
4. It is common for array elements to be stored in adjacent memory cells but it is not necessary.
5. The statement
double r[] = {2.87, 3.14159, 9.5};
is legal.

1. False
2. False
3. True
4. False
5. True

Computer Science & Information Technology

You might also like to view...

C# is .

a) event-driven b) a visual programming language c) fully object-oriented d) All of the above.

Computer Science & Information Technology

Write the definition for a class Car which has the manufacturer, model, year, and number of doors. An example car has a manufacturer of Toyota, a model of Camry, a year of 2000 and a number of doors of 4. Be sure to code all accessor and modifier methods. See the Car class in the bookClassesFinal directory.

What will be an ideal response?

Computer Science & Information Technology