Successfully reported this slideshow.
Your SlideShare is downloading. ×

An array of 10 integers named myArray can have its contents displayed.docx

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad

Check these out next

1 of 2 Ad

An array of 10 integers named myArray can have its contents displayed.docx

Download to read offline

An array of 10 integers named myArray can have its contents displayed with which of the following statements?
-cout << myArray;
-cout << myArray[];
-cout << myArray[10];
-cout << myArray[0-9];
-None of these
Solution
To display coneten in the array The below one we use.
for (int i = numElements - 1; i >= 0; i--)
cout << array[i];
.

An array of 10 integers named myArray can have its contents displayed with which of the following statements?
-cout << myArray;
-cout << myArray[];
-cout << myArray[10];
-cout << myArray[0-9];
-None of these
Solution
To display coneten in the array The below one we use.
for (int i = numElements - 1; i >= 0; i--)
cout << array[i];
.

Advertisement
Advertisement

More Related Content

More from rtodd988 (20)

Recently uploaded (20)

Advertisement

An array of 10 integers named myArray can have its contents displayed.docx

  1. 1. An array of 10 integers named myArray can have its contents displayed with which of the following statements? -cout << myArray; -cout << myArray[]; -cout << myArray[10]; -cout << myArray[0-9]; -None of these -cout << myArray; -cout << myArray[]; -cout << myArray[10]; -cout << myArray[0-9]; -None of these Solution To display coneten in the array The below one we use. for (int i = numElements - 1; i >= 0; i--) cout << array[i];

×