Difference between r1.4 and the current
@@ -6,10 +6,32 @@
{{{
void swap(int *a, int *b){
int temp;
temp=*a;
*a=*b;
*b=temp;
}
}}}
== 문자열 출력 ==
{{{
void swap(int *a, int *b){
int temp;
*a=*b;
*b=temp;
}
//분석해보세요
void swap(int *a, int *b){
if((*a)!=(*b)){
*a^=*b^=*a^=*b;
}
}
int main()
{
int x=5, y=10;
printf("%d %d\n", x, y);
swap(&x, &y);
printf("%d %d\n", x, y);
return 0;
}
== 문자열 출력 ==
{{{
@@ -19,8 +41,11 @@
ptr++;
}
}
void main(){
prints("abcd");
}
}
}
int main()
{
printstring("abcd");
return 0;
}
}}}