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