bsc

Comprehensive codebase and cou...
Log | Files | Refs | README | LICENSE

P013.c (477B)


      1 /*
      2  * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025
      3  * Repo: https://github.com/notamitgamer/bsc
      4  * License: MIT
      5  */
      6 
      7 /* WAP to swap two integer variable without
      8 using third  variable */
      9 // using Approch Mode : complex, fast, less time consumimg
     10 
     11 #include<stdio.h>
     12 #include<math.h>
     13 int main() {
     14 	int a = 4, b = 6;
     15 	printf("Before Swap : A = %d, B = %d", a, b);
     16 	a = a ^ b;
     17 	b = a ^ b;
     18 	a = a ^ b;
     19 	printf("\nAfter Swap : A = %d, B = %d", a, b);
     20 	return 0;
     21 }
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror