subject
Computers and Technology, 14.04.2020 18:19 maren17

Write a program named as reverse. c that reads a message, then prints the reversal of the message. The output of the program should look like this: Enter a message: Don ’t get mad, get even. Reversal is : .neve teg ,dam teg t ’noD Hint: Read the message one character at a time (using getchar) and store the characters in an array. Stop Reading when the array is full or the character read is ‘\n’. The framework of reverse. c is as below: /* reverse. c */ #include #define N 50 int main(){ int arr[N],i=0; char ch; printf("Enter a message: "); /* Put code here to get input from user by using getchar() */ printf("Reversal is: "); } /* Put code here to print out the reversal by using putchar()*/ printf("\n"); return 0;

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 15:30
What is the function of compilers and interpreters? how does a compiler differ from an interpreter?
Answers: 2
question
Computers and Technology, 24.06.2019 19:50
Which is a characteristic of free and open-source software licenses? a. the source code is unavailable to everyone b. the source code is available only to the government c. the source code is available to all users d. the source code is constantly modified
Answers: 1
question
Computers and Technology, 25.06.2019 15:00
Most lo/to hazards occur under the following circumstances, except: a) regular operation b) maintenance c) cleaning d) repair
Answers: 2
question
Computers and Technology, 26.06.2019 03:20
according to initial research regarding online communications (lee, park, lee & cameron, 2010), how are user-generated materials, such as blogs and reviews, viewed in comparison to formal news reports prepared by professional journalists?
Answers: 1
You know the right answer?
Write a program named as reverse. c that reads a message, then prints the reversal of the message. T...
Questions
question
Mathematics, 14.12.2019 02:31
Questions on the website: 13722363