6 16 pts. Please cross out the lines of code that will not compile. const long S
ID: 3903776 • Letter: 6
Question
6 16 pts. Please cross out the lines of code that will not compile. const long SIZE 5; m 8, n 7; long *pl; const long * p2 = & m; long const p3-& m; pl-& SIZE; pl - &n; p2 &n; p3 = &n; *p1 16: *p2 17; p3 18; 7) 16 pts. Below is a table of c-string functions. Your job is to create the equivalent code with the C++ string object. You can assume the given data definitions. char csong [30]= "Little Deuce", string strsong "Little Deuce", cBeachs [30]; Str BeachB; C-String Function strcpyCcBeachB, cSong) String Object Function strcat cBeachB," Coupe) (strcmp(cSong, cBeachB)Explanation / Answer
6. p2 = &n; p3 = &n; *p2 = 17; *p3 = 18; 7. strBeachB = strSong; strBeachB = strBeachB + " Couple" strSongRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.