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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!