bsc

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

root / semester_1 / tuition-c / APC-PRAC-009.c

APC-PRAC-009.c (293B)


      1 /* WAP to swap two integer variable without using Third variable. */
      2 
      3 #include <stdio.h>
      4 int main()
      5 {
      6     int a = 4, b = 6;
      7     printf("Before swap : A = %d and B = %d", a, b);
      8     a = a ^ b;
      9     b = a ^ b;
     10     a = a ^ b;
     11     printf("\nAfter swap  : A = %d and B = %d", a, b);
     12     return 0;
     13 }
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror