printf函数中的字符输出

#include <stdio.h>
#include <limits.h>               // For CHAR_MAX
#include <ctype.h>                // For isprint()

int main(void){
  int count = 0;// 

  printf(The printable characters are the following:\n);

  // Iterate over all values of type char
  for(int code = 0 ; code <= CHAR_MAX ; ++code){
    char ch = (char)code;
    if(isprint(ch)) {
      if(count++ % 32 == 0)
        printf(\n);
      printf( %c, ch);
    }
  }
  printf(\n);
  return 0;
}

相关文章

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