1.

What is the output of this program?
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string s ("Bjarne Stroustrup founded the C++");
string s2 ("C++");
unsigned found = s.find(s2);
if (found != string :: npos)
cout << found << ' n';
return 0;
}

A. founded the C++
B. Bjarne Stroustrup
C. C++
D. 30
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs