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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!