#include <stdio.h> int putchar(int c) c : 書き込む文字
#include <stdio.h> int main() { int i1; char *str = "This is a test\n"; for (i1 = 0; i1 < 15; i1++) putchar((int)str[i1]); return 0; }
This is a test
#include <stdio.h> int main() { int i1; char *str = "This is a test"; /* puts */ puts(str); /* fputs */ fputs(str, stdout); /* putchar */ for (i1 = 0; i1 < 14; i1++) putchar((int)str[i1]); putchar('\n'); return 0; }
This is a test This is a testThis is a test
菅沼ホーム | 本文目次 | 演習問題解答例 | 付録目次 | 索引 |