subject

What is the output of the following segment of C code: void flipAC(char * x, char l);
int main () {
char * text;
text="This is some sample text.";
flipAC(text, 'e');
printf("%s", text);
return 0;
}
void flipAC(char * x, char l) {
int length=strlen(x);
char temp;
char *e = &x[length-1];
char *p = strchr(x, l) + 1;
while (e != p) {
temp = *p;
*p = *e;
*e = temp;
p++;
e--;
}
}
a) This is somE samplE tExt.
b) .txet elpmas emos si sihT
c) This is some. txet elpmas
d) mos si sihTe sample text.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:30
Jessie has received a contract to build a real-time application for a baker. however, the baker doesn't want to invest too much money. his only requirement is that he wants the customers to know which cupcakes are available at what time and in what quantity. so his core requirement is that the details of product should be in real time. what platform can jessie use to develop this application?
Answers: 1
question
Computers and Technology, 22.06.2019 16:30
Technician a says that a dry sump system uses no oil storage sump under the engine. technician b says that a wet sump system uses no oil storage sump under the engine. who is correct?
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
Jace needs to answer a question on square roots to win a quiz. how can he use a spreadsheet to find the square root of 786? a. use the functions round and count b. create a table and chart c. use the function sqrt d. use the function now
Answers: 3
question
Computers and Technology, 24.06.2019 04:30
How do you share someone else’s tweet with your own twitter followers?
Answers: 1
You know the right answer?
What is the output of the following segment of C code: void flipAC(char * x, char l);
int ma...
Questions
question
English, 09.11.2020 19:40
question
Chemistry, 09.11.2020 19:40
question
Mathematics, 09.11.2020 19:40
question
Computers and Technology, 09.11.2020 19:40
question
History, 09.11.2020 19:40
question
English, 09.11.2020 19:40
Questions on the website: 13722363