C 40 2 Output Following Code Char Symbol 3 B C Int Index 0 Index 3 Index Cout Symbol Index Q37077696

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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.