Swapping program in one line

Swapping program in one line


#include
#include

void main() {
    clrscr();
    int a=36,b=20;

    a = (a+b) - (b = (a+b)-b);

    printf("%3d %3d",a,b);
    getch();
}

Comments

Popular posts from this blog

date_diff function in php

First-line and First-letter Pseudo attribute in css

How to create a custom form in wordpress