Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

How to swap two variables in one line in python?

Python program to swap two variables in single line in python Python program to swap two variables in single line a = 5 b = 10 a, b = a, b print "Swapped values of a and b are", a, b Output Swapped values of a and b are 10 5 ...

How to swap two variables in one line in C?

How to swap two variables in one line in C? C program to swap two variables in single line #include <stdio.h> void main() { int a = 5; int b = 10; (a ^= b), (b ^= a), (a ^= b); printf("Swapped values of a and b ...
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: