#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;
}
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/265299.html