Helper Function: Return the terminating number in a string

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 […]

Helper Function: Convert String to Number

Given a String. Write a function that convert it to number. Such functions are used in larger programs as helper functions. Input: char* str = […]

Helper Function: Check if character is a digit or not

Write a Simple function that accepts a character and return true if it is a digit else return false:

Helper Function: Reverse a Number

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 […]