三道经典C语言题(6)
1、写一函数int fun(char *p)判断一字符串是否为回文,是返回1,不是返回0,出错返回-1.(例如:字符串”123454321”就是回文字符串)

3、Write a function string reverse string word By word(string input) that reverse a string word by word.
For instance:
"The house is blue" --> "blue is house The"
"Zed is dead" -->"dead is Zed"
"All-in-one" --> "one-in-All"
在不增加任何辅助数组空间的情况下,完成function
字符串中每个单词(子串)的逆序