Question: please explain me this question briefly (programming c++) Consider the following program fragment: char saying[] = Too many cooks spoil the broth.; char *p1, *p2;

 please explain me this question briefly (programming c++) Consider the following

please explain me this question briefly (programming c++)

Consider the following program fragment: char saying[] = "Too many cooks spoil the broth."; char *p1, *p2; p1 = saying; p2 == saying + 8; *p2 = '\0'; printf("%s ", saying); What string will be printed? (a) "Too many cooks spoil the broth." (b) "cooks spoil the broth." (c) "Too many" (d) "Too many cooks spoil the broth." (e) "saying

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!