C語言 字符串逆序 函數 strrev()

頭文件 #include <string.h> 函數原型 char *strrev(char *str); 功能 把字符串str的全部字符的順序顛倒。(逆序)web 示例 #include <stdio.h> #include <string.h> int main() { //char *a = "asdfg"; //printf("%s", strrev(a)); //用法錯誤
相關文章
相關標籤/搜索