linux C 学习 简单字符串逆序输出

看了下网上的字符串逆序输出,都相对复杂,下面给一个简单的字符串逆序输出小程序实现:小程序 #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int i; int n; char *q = "I am a coder"; n = strlen(q); char buffer[n+1];//多一个
相关文章
相关标签/搜索