Question
1.
#include
2.
#include
3.
using namespace std;
4.
int main ()
5.
{
6.
string str ("Microsoft");
7.
for (size_t i = 0; i < str.length();)
8.
{
9.
cout
What is the output of this program?
1.
#include
2.
#include
3.
using namespace std;
4.
int main ()
5.
{
6.
string str ("Microsoft");
7.
for (size_t i = 0; i < str.length();)
8.
{
9.
cout
Answer: Option D
Was this answer helpful ?
This program will terminate because the cout element is out of range.
Was this answer helpful ?
Submit Solution