Write down a function int reverse (int n) that takes a positive integer as input parameter and returns the reverse of the given integer. For…
Write down a function int reverse (int n) that takes a positive integer as input parameter and returns the reverse of the given integer. For example, if input integer N=2579, then reversed output is= 9752
From the BDCCL Assistant Manager (Cloud) October 2022 – Written exam, question 40 of 55.