diff --git a/README.md b/README.md index 1dc3621..ecbd711 100644 --- a/README.md +++ b/README.md @@ -231,7 +231,10 @@ void SwapLong(long *x,long *y) ``` void SwapChar(char x[],chary[]) { - + char temp[MAX_LEN]; + strcpy(temp, x); + strcpy(x, y); + strcpy(y, temp); } ```