char* str="Hello world!"; int i; for (i=0;i<strlen(str);i++) { printf("%c\r\n",str); str++; }
每次执行到strlen时都会重新计算一次字符串长度
posted on 2013-04-21 22:31 JoyLobo 阅读(97) 评论(0) 收藏 举报
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3