printf() > size_t型の書式指定子 > %zu - Qiita

SOのやり取りを見ている中で、「Don't print size_t with the %d format specifier, it invokes undefined behavior」という記…