i write the program:
Code:
#include "stdio.h"

int main()
{
   int a,b,c;
   a=1;
   b=2;
   c=0;

   c=a;
   a=b;
   a=c;
/*........ and other output command*/
 retrun 0;
}
but i found the Others write as:

Code:
#include "stdio.h"
int main()
{
  int a,b;
  a=1;
  b=2;
  a=a^b;
  b=a^b;
  a=a^b;
/*...... and other output command*/
return 0;
}
the second method is Good?