Question: Challenge activity 8.4.2: Find c string in c string. Assign the first instance of The in movieTitle tomovieResult. #include #include using namespace std; int main()

Challenge activity 8.4.2: Find c string in c string.

Assign the first instance of The in movieTitle tomovieResult.

#include
#include
using namespace std;

int main() {
char movieTitle[100] = "The Lion King";
char* movieResult = 0;

/* Your solution goes here */

cout << "Movie title contains The? ";
if (movieResult != 0) {
cout << "Yes." << endl;
}
else {
cout << "No." << endl;
}

return 0;
}

Step by Step Solution

3.48 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

AnswerAssign the first instance of The in movieTitle to movieResult C driver program to tes... View full answer

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 Electrical Engineering Questions!