What is the output of the following code?
char symbol[3] = {'a', 'b', 'c'};
for (int index = 0; index < 3; index++)
cout << symbol[index];
Output of the given program code: abc
Complete program code:
#include <iostream>
using namespace std;
int main()
{
char symbol[3] = {'a', 'b', 'c'};
for (int index = 0; index < 3; index++)
cout << symbol[index];
system("pause");
return 0;
}
Output: