Answer to Question #133996 in C for joyanto roy

Question #133996
We know how to reverse an array using pointers. Your task is to partially reverse an array using pointer. Follow the given steps to solve the problem.
a) Take N integer numbers in an array. (3<=N<=25).
b) Assign a pointer to point to the 0th index element of the array.
c) Using pointers, swap elements accordingly to reverse the array (swap 1st element

with n-1th element. 2nd element with n-2th element and so on).
d) But as it is a partial reverse process, you need to check some conditions before swapping. If the numbers to be swapped are M and N respectively, do not swap them if the following condition becomes true.
i. M+N> M*N
Sample Input-Output: Input Output
1234 1324
50321 50321
1
Expert's answer
2020-09-19T08:24:54-0400
Dear joyanto roy, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS