see

A

WAP to swap 2 numbers using swap as macro


WAP to swap 2 numbers using swap as macro

#include<conio.h>
#include<stdio.h>
#define swap(x,y) { x=x+y; y=x-y; x=x-y;}
void main()
{
  int a=3,b=4;
  swap(a,b);
  printf("%d,%d",a,b);
  getch();
}

Copyright © 2013. BloggerSpice.com - All Rights Reserved
Customized by: MohammadFazle Rabbi | Powered by: BS
Designed by: Tilabs