Swap the two variable values without taking third variable? Anonymous User166201-Sep-2015iphoneiphone ios objective c Updated on 22-Sep-2020
Anonymous User
01-Sep-2015int y=5;
x=x+y;
NSLog(@”x==> %d”,x);
y=x-y;
NSLog(@”Y Value==> %d”,y);
x=x-y;
NSLog(@”x Value==> %d”,x);