Summary: This page is a
printf formatting cheat sheet or reference page. I originally created this
printf cheat sheet for my own programming purposes, and then thought it might be helpful to share it here.
Many languages, same syntax
A great thing about the
printf formatting syntax is that the format specifiers you can use are very similar — if not identical — between different languages, including C, C++, Java, Python, Perl, PHP, Ruby, Scala, and others. This means that your
printf knowledge is reusable, which is a good thing.