(Solved):Complete the function to replace any period by an exclamation point. Ex. “Hello. I’m Miley. Nice to meet you.” becomes: “Hello! I’m Miley! Nice to meet you!” View Answer…

 

Question

Complete the function to replace any period by an exclamation point.

Ex. “Hello. I’m Miley. Nice to meet you.” becomes:

“Hello! I’m Miley! Nice to meet you!”

#include <stdio.h>
#include <string.h>
void MakeSentenceExcited(char* sentenceText)
{
}
int main(void)
{
cont int TEST_STR_SIZE=50;
char testStr[TEST_STR_SIZE];
strcpy(testStr, "Hello. I'm Miley. Nice to meet you.");
MakeSentenceExcited(testStr);
printf("%s",testStr);
return 0;
}

 

EXPERT ANSWER

The C program is to demonstrate the method MakeSentenceExcited.

The method MakeSentenceExcited that takes a character pointer and

Scroll to top