bsc

Comprehensive codebase and coursework for the 4-year B.Sc. Computer Science Honours degree (WBSU)

git clone https://github.com/notamitgamer/bsc.git
· rebuilt hourlyOpen on GitHub
root / semester_1 / tuition-c / APC-SPS-002.c

APC-SPS-002.c (268B)


      1 /* WAP to swap two integers. Display both numbers
      2 before and after swap */
      3 
      4 #include<stdio.h>
      5 int main() {
      6 	int a = 10, b = 20, temp;
      7 	printf("Before swap A : %d, B : %d", a, b);
      8 	temp = a;
      9 	a = b;
     10 	b = temp;
     11 	printf("\nAfter swap A : %d, B : %d", a, b);
     12 	return 0;
     13 }