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 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
Get step-by-step solutions from verified subject matter experts
