Program to swap two numbers without using Third Variable. Here we are using two variables of into the type.
int main() { int a=10,b=20; Printf(“without swapping %d %d”,a,b); a=^b; b=^a; a=^b; printf(“after swapping %d %d”,a,b); getch(); } |
0 comments:
Post a Comment