Difference between r1.5 and the current
@@ -6,15 +6,32 @@
{{{
void swap(int *a, int *b){
int temp;
temp=*a;
*a=*b;
*b=temp;
}
{\t//분석해보세요
void swap(int *a, int *b){
}
}}}
== 문자열 출력 ==
{{{
void swap(int *a, int *b){
int temp;
*a=*b;
*b=temp;
}
a^=b^=a^=b;
//분석해보세요
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;
}
== 문자열 출력 ==
{{{
@@ -24,8 +41,11 @@
ptr++;
}
}
void main(){
prints("abcd");
}
}
}
int main()
{
printstring("abcd");
return 0;
}
}}}