#include<stdio.h> void main( ) { int c,d; scanf("%d %d", &c, &d); printf("Value after swap c = %d and d = %d", d, c); }
c
d
int temp = c; c = d; d = temp;
void main( ) { int c,d; scanf("%d %d", &c, &d); c ^= d; d ^= c; c ^= d; printf("Value after swap c = %d and d = %d\n", c, d); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)