Problem Statement - First and last digit of an integer in a function and putting at reference location
Write a c++ program using a function with the following prototype –
void first_last_digit(int n,int first,int last);
In this function pass an integer number as n and then find the first and last digit of n. Then update it on locations first and last passed as reference. Assume values to be passed to demonstrate the working of this function in the main routine.
sunmitra| Created: 25-Jan-2018 | Updated: 29-Nov-2018|