C语言 Dev-C++ 实现字符串反转:将 'Hello World' 倒序为 'droW olleH'
#include <stdio.h>
#include <string.h>
int main() {
char str[] = 'Hello World';
int len = strlen(str);
for (int i = len - 1; i >= 0; i--) {
printf('%c', str[i]);
}
return 0;
}
原文地址: https://www.cveoy.top/t/topic/oJ02 著作权归作者所有。请勿转载和采集!