When returning an array reference, square brackets are included with the return type in the method header.

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

True

Computer Science & Information Technology

You might also like to view...

Click Me to view your Interactions and Mentions

Indicate whether the statement is true or false

Computer Science & Information Technology

What is the output from each of the following loops?

a) ``` while ( 0 ) cout << ‘X’; cout << endl; ``` b) ``` do cout << ‘X’; while ( y != y ); cout << endl; ``` c) ``` int i = 1; while (i < 9) { cout i; i++; } ``` d) ``` d) char c = 'A'; do { cout << c << " "; c = c + 2; } while ( c <= 'M' ) cout << endl; ``` e) ``` int i = 0; while (i < 50) { if ( i < 20 && i != 15 ) cout << 'X'; i++; } cout << endl; ```

Computer Science & Information Technology