Question: Write a C function to swap last digits of 2 integers using the prototype below: void swapDigits ( int *, int * ); Write a
Write a C function to swap last digits of 2 integers using the prototype below:
void swapDigits ( int *, int * );
Write a main function in which, user can enter these numbers and pass them to the function above using Call by Reference.
Remember to print these two numbers in main at the end.
EXAMPLE OUTPUT :
Enter 1st real number: 296
Enter 2nd real number: 64
---------------------------
After swapping:
1st number = 294
2nd number = 66
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
