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...

Each node of a singly linked list has two components: ____ and ____.

A. info, head B. link, back C. back, head D. info, link

Computer Science & Information Technology

How can you cause gawk (not awk or mawk) to neatly format—that is, “pretty print”—a gawk program file? (Hint: See the gawk man page.)

What will be an ideal response?

Computer Science & Information Technology