C语言字符串

#include <stdio.h>

int main() {

   char ch[5] = Hello;
   int i = 0;

   /* Print as a complete string */
   printf(String = %s\n, ch);  

   /* Print character by character */
   while( i < 5 ) {
      printf(ch[%d] = %c\n, i, ch[i] );
      i = i + 1;
   }
}

相关文章

for遍历数组
。。。
声明一个计数循环
咕咕咕
#include <stdio.h> int main (void) { printf (&quo...