Loose-Info.com
Last Update 2012/07/05
TOP - C言語 - stdio.h - フォーマット文字列(fprintf, printf, sprintf) - 変換指示子 - c

引数intをunsigned charの「文字」に変換します。

(例)
#include <stdio.h> int main() { printf("c変換 : [%c]\n", 0x30); printf("c変換 : [%c%c%c]\n", 0x41, 0x42, 0x43); return 0; }

実行結果
c変換 : [0] c変換 : [ABC]