#include <ctype.h> int iscntrl(int c) c : テストする整数
#include <stdio.h>
#include <ctype.h>
int main()
{
printf("制御文字であるか否かのチェック\n");
printf(" A は %d, \\n は %d\n", iscntrl('A'), iscntrl('\n'));
return 0;
}
制御文字であるか否かのチェック A は 0, \n は 32
| 菅沼ホーム | 本文目次 | 演習問題解答例 | 付録目次 | 索引 |