Question: What is output of the code snippet given below? string name = Oscar DeGama; cout < < name [ 7 ] < < name [

What is output of the code snippet given below?
string name = "Oscar DeGama";
cout << name[7]<< name[8]<< name[9]<< endl;
Group of answer choices
There is no output due to compilation error.
DeG
eGa
Gam

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!