Комментарии:
int a,b;
printf(" Enter Two values : ");
scanf(" %d %d ", &a,&b);
printf(" Before swap a = %d and b = %d ", a,b );
a=a+b;
b=a-b;
a=a-b;
printf(" After swap a = %d and b = %d ", a,b );
cant run
THanks
Ответитьyayyyyyyy
ОтветитьThanks a lot sir ❤
ОтветитьYou don't have to fake an American accent
Ответитьa=ya 😂😂
ОтветитьCan i try same in python yes or no
ОтветитьWhich software is this
ОтветитьThanks bro
ОтветитьNice vidio 😘😘😘😘
ОтветитьSir 2135 out 5132 hota h to program kyasay bnayegay
ОтветитьGeo :)
Ответитьhello, may you please help me write a C program in functions
1. by refrence
2. By value
wth is yay it's a
Ответитьwhy don't we swap a,b to b,a in the printf statements?
ОтветитьHere's a better, faster, way:
a=a+b-(b=a)
works with numbers as long as they are the same type, and with characters.
This method works only if 2 number a + b is not overflow.
It's better to use the XOR method.
A ^= B
B ^= A
A ^= B
or combine them A ^= B ^= A ^= B
which terminal is this?? it is not devcpp which u used in previous videos.
ОтветитьHere's an alternative method using xor: a ^= b ^= a ^= b;
Ответить