C Programming Tutorial - 22 Swapping of Two number easy way

preview_player
Показать описание
swapping is to exchange values of two variables.

Follow on Facebook:

Subscribe to our other channel:
Telusko Hindi :
Рекомендации по теме
Комментарии
Автор

For most of the confusions I think the answer is any operation is done always from left to right and the very first very left "a" has the pre-assigned value which is 5....and then when we reach the paranthesis....there only we assign the value of "a" to 6 which will not have an effect to the leftmost "a" as the operation flow will not go from right to it cheers !

adityalote
Автор

Sir but after assigning b value to a inside the () then how the value of 1st a will be 5 ????

kishorekumars
Автор

If a is occupying the value of b then at that instance of time where is the value of a?
It is little bit confusing ... please explain it

aditipandey
Автор

Sir could please explain the meaning of swapping??

vanajakasireddy
Автор

just confusing but it is easy to understand.
'

kuntalshah
Автор

By using b =a+b-(a=b). It requires 4 bits to store 11.then the memory is wasted know sir

TEJAT-nrog
Автор

Sir I have confusion ..when we pass the b value in a (a==b) ..so

a=6 or b=null

So how first condition a+b .here how to a value is 5 ???

b=a+b-(a=b)
b = 5?+b-(6?+0)

How first a is

Its also 6 right??

sureshprajapati
Автор

Sir ye bhi to kr skte na syd ki print("a:%d, b:%d", b, a) ;

prateekgautam
Автор

I did not understand the swapping part

TVVDINAKARAN