Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
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 ...