My issue
what is exact ans of this code ?
My code
#include <stdio.h>
int main() {
// your code goes here
int a = 12 ,b = 43 ,temp;
// swapping with using third variable
temp = a;
a = b;
b = temp;
printf("%d %d\n", a, b);
//swapping without using third variable
a = a + b;
b = a - b;
a = a - b;
printf("%d %d\n",b,a);
}
Learning course: Learn C Programming
Problem Link: https://www.codechef.com/learn/course/rcpit-programming-c/RCPITLPC07/problems/LJAJAG21