C++4.0 (2) What is the output of the following code?char symbol[3] = {‘a’,’b’,’c’};for (int index = 0; index < 3; index++)cout << symbol[index];
5.0 (2) What is the output of the following code?double a[3] = {1.1,2.2,3.3};cout << a[0] <<” “ << a[1] << “ “<< a[2] << endl;a[1] = a[2];cout << a[0] <<” “ << a[1] << “ “<< a[2] << endl;6.0 (2) What is the output of the following code?int i, temp[10];for (i = 0; i < 10; i++)temp[i] = 2*i;for (i = 0; i < 10; i++)cout << temp[i] << “ “;cout << endl;for (i = 0; i <
OR
OR