Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This exercise is based on a variation of Ch12, Programming Project 1, p275. Write a program called reverse_half.c that reads a message, then prints the
This exercise is based on a variation of Ch12, Programming Project 1, p275. Write a program called reverse_half.c that reads a message, then prints the reversal of the first half of the message. Given a message of size n (every character in the message counts), the first half of the array would end at index n/2 (regardless of whether the array is an odd or even size). A message will have at most 100 characters Example: Enter a message: Don't get mad, get even. Reversal of first half: am teg t'noD Your program MUST use pointers and NOT integer array indices (i.e., a[ 1], af5] etc.) to process the character array. You must create a Makefile to compile your program. As usual, your Makefile must have a clean target
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started