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, 23.06.2019 04:20
4. a1. vince owns a television repair shop that is insured undera commercial package policy. the policy includes thebuilding and personal property coverage form and thecauses-of-loss broad form. the declarations page indicatesthat coverage applies to both the building and the namedinsured's business property. explain whether or not thefollowing losses would be covered under his policy.a. a fire occurs on the premises, and the building isbadly damaged.b. a burglar steals some money and securities from anunlocked safe.c. a business computer is damaged by vandals whobreak into the shop after business hours.d. a tornado touches down near the store. several tel-evision sets of customers in the shop for repair aredamaged in the storm.til
Answers: 2
question
Computers and Technology, 23.06.2019 06:00
What makes myhexadecimalnumber a child of mynumber? which methods does myhexadecimalnumber inherit directly from the mynumber class? what can an instance of the mynumber class do? what can an instance of the myhexadecimalnumber class do? which methods are overridden? why are they overridden? how many examples of overloading are there? why was this done? where is the super keyword used? what is it doing? why isn’t the incoming value set immediately in the second myhexadecimalnumber constructor? how many examples can you find of an inherited method being called?
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
Write pseudocode to represent the logic of a program that allows the user to enter a value. the program multiplies the value by 10 and outputs the result.
Answers: 1
question
Computers and Technology, 23.06.2019 22:20
What is a programming method that provides for interactive modules to a website?
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
History, 14.11.2021 22:20
question
Mathematics, 14.11.2021 22:20
question
Mathematics, 14.11.2021 22:20
Questions on the website: 13722360