Vidyalelo
C++ Programming · Q68

Arrays and Strings in C++

Programming · C++ Programming · question 68

Q68

What will be the output of the following C++ code? #include #include using namespace std; int main () string str ("Steve jobs founded the apple"); string str2 ("apple"); unsigned found = str.find(str2); if (found != string :: npos) cout << found << ' '; return 0;

A.
apple
B.
12
C.
23
Answer
D.
Steve jobs founded the

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board