Question: Write a program to reverse an integer number by using a function called reverse. The program reads in an integer number and prints its reverse
Write a program to reverse an integer number by using a function called reverse. The program reads in an integer number and prints its reverse order. Note that the function receives the number via a pointer, and uses the pointer to write the reverse number on the main function.
The function MUST be used AS IS:
void reverse(int *n)
Language in C
Bonus Problem: Number Reverser reverse c Write a program to reverse an integer number by using a function called reverse. The program reads in an integer number and prints its reverse order. Note that the function receives the number via a pointer, and uses the pointer to write the reverse number on the main function Implement this function: void reverse (int *n) Here is an example of the program output. Enter a number to reverse 1234 Reversed number is 4321
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
