Moving to another question wll save this response Question 27 void properCase(st
ID: 3580645 • Letter: M
Question
Moving to another question wll save this response Question 27 void properCase(string)i void properCase(string&) void properCase(const string) 3. void properCase (const string&) 4 int main() string str("To WRITE WITH A BROKEN PENCIL IS poINTLESS. proper Case(str); cout ster endli To write with A Broken pencil Is Point Less At most one the prototypes shown here is comect senanticalb. Which prototype should be left in place?cNote.these are nor overloaded functious only ose waluactually be prototyped) of A Moving to another question will save this response.Explanation / Answer
Question 27)
Ans :a
void properCase(string)
This is the symmetically correct function prototype.
Question 28)
Ans : a
find will retrun the location of the ','
comma is having 7 value which is the location of the ','
Substr will do the subset of string from 0 position and length is comma i.e. 7. So, from 0 to length 7 we will get first name 'Baggins'
Related 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.