What is the output of the following code?

```
#include
int main()
{
using namespace std;
double a[3] = {1.1, 3.3, 2.2};
cout << a[0] << " " << a[1] << " " << a[2] << endl;
a[1] = a[2];
cout << a[0] << " " << a[1] << " " << a[2] << endl;
}
```






The value stored at the index 1 position is changed to the value from the index 2 position. The output reflects the contents original array and the changed array.

Computer Science & Information Technology

You might also like to view...

In OpenOffice Calc, unused sheets can be ________ from a spreadsheet file

Fill in the blank(s) with correct word

Computer Science & Information Technology

A desktop background does not allow use of your own pictures.?

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

Computer Science & Information Technology

In a counter-controlled while loop, the loop control variable must be initialized before the loop.

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

Computer Science & Information Technology

When you apply a style to a content control, the style is applied to the text the user types during the data entry process.

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

Computer Science & Information Technology