Given a string that is terminating with digits (eg. ‘Kamal1234’). Write a function which accept this string and return the integer at the end. Input String: ‘Kamal1234’ Output (int): 1234 Input String: ‘Moksha023Kam05’ Output (int):5 pinkdiamonds.nl
Write a Simple function that accepts a character and return true if it is a digit else return false:
Sometimes we need helper functions in our code. One such helper function needed is to reverse a number. i.e a function which returns me ‘321’ if I pass ‘123’ to it. Implement the following function int reverseNum(int num) The function should accept an integer and should return an integer whose digits are reverse of the original number.