Answer:
#include <iostream>
#include <cstring>
using namespace std;
void replacePeriod(char* phrase) {
int i = 0;
while(*(phrase + i) != '\0')
{
if(*(phrase + i) == '.')
*(phrase + i) = '!';
i++;
}
}
int main() {
const int STRING_SIZE = 50;
char sentence[STRING_SIZE];
strcpy(sentence, "Hello. I'm Miley. Nice to meet you.");
replacePeriod(sentence);
cout << "Updated sentence: " << endl;
cout << sentence << endl;
return 0;
}
Explanation:
- Create a function called replacePeriod that takes a pointer of type char as a parameter.
- Loop through the end of phrase, check if phrase has a period and then replace it with a sign of exclamation.
- Inside the main function, define the sentence and pass it as an argument to the replacePeriod function.
- Finally display the updated sentence.
The answer is A it’s the one that sounds right
Answer:
The statement to this question can be given as:
Statement:
void printLarger(int sales1, int sales2)//function declaration.
{
//function body
}
Explanation:
Function is a group of organized code that is used to perform some specific task.
Syntax:
return-type functionname(parameters1,....parameter n)
{
//function body.
}
In the above function definition we define a function that is "printLarger". This function accepts two integer parameters that is "sales1 and sales2" and does not return any value because we use return-type void.
Answer: Full backup
Explanation:
Full backup is comparatively faster in restore operations and conatins all the data in the files or folders selected to be backup ed.
Full backup is also the starting point of all backups and contain all the data.
Please be more specific. What are you trying to ask?