i write the program:
but i found the Others write as: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; }
the second method is Good?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; }