Swap 2 Numbers Using a Temporary Variable: C
Satish B
http://technotip.com/6201/swap-2-numbers-using-a-temporary-variable-c/
Swapping 2 Numbers In C: Logic Here we take 3 variables, x, y and temp; We store 10 in x and 20 in y.
- First we copy the value present in x to temp. So now, both x and temp variables have value 10.
- Next we copy value of y to x. So now, both x and y have value 20.
- Next, copy the value of temp to y. So now both y and temp have value 10.
Finally after executing above 3 step logic, x has value 20 and y has a value of 10 in it.
C Programming: Beginner To Advance To Expert
http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/ ... https://www.youtube.com/watch?v=f_JBCYWS2uw
2020-07-21
0.0 LBC
Copyrighted (contact publisher)
4239391 Bytes