Answer:
The purpose of wordpress is to develop blogs or dynamic websites.
Log in is the feature that allows you to access your electronic account in a website, database or other, also a bank account. Your username and password are stored in cookies (files that websites use and are stored in your browser) for the session. This is true if we talk about websites.
When you're done, you log out from your account, you disconnect. Cookies are cleared (for websites) and you're out.
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 error in your Java program is described as follows:
You cannot print a string without setting its value.
<h3>How to print a string in Java?</h3>
There are multiple ways to print a string in a Java, but one of them is using the system.out.println(string) command, which prints the string and gives a new line.
However, for this method, and any other, the string has to be set before it is printed, which does not happen for this problem. There should be a line setting the string like the example:
s = "ABC";
Hence the correct option regarding the error is given as follows:
You cannot print a string without setting its value.
More can be learned about Java programming at brainly.com/question/18554491
#SPJ1