The following is the problem code.
#include #include using namespace std; void convertToUppercase(char *); int main() { cha
Try
while (*sPtr != '\0')
You may also get a seg fault for modifying a string constant