Question: *note text.erase(0,1); is what I did wrongly suffix cC Write a function suffix that takes a char* representing a null-terminated character array (a C string),
*note text.erase(0,1); is what I did wrongly

suffix cC Write a function suffix that takes a char* representing a null-terminated character array (a C string), and returns the string obtained by starting at the second letter. For example suffix("thug") Hint: you shouldn't be trying to create new memory locations or change the given string You're not required to check if the string is already empty. 1#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
