Question: Write a function, void rev_print(in n), that accepts an integer n and prints out the digits out the digits of n in reverse order. So
Write a function, void rev_print(in n), that accepts an integer n and prints out the digits out the digits of n in reverse order. So if n = 123, your function will print the three digits 3 2 1. Answer: void rev_print(int n) {
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
