Swap Without 3rd Variable

 #include <stdio.h>

int main() {
    int a=4, b=5;
    a=a+b;
    b=a-b;
    a=a-b;
    printf("%d %d",a,b);
}

Comments

Popular posts from this blog

Transpose

1 to n without any parameter Recursion

Recursion Factorial