New course! Every coder should learn Generative AI!
Try a free lesson+ 2
The “f” in “printf” means “formatted.”
Essentially, it’s because it takes a char* format (eg “%d” for an integer or “%s” for a string) and a second argument that is the content to be formatted.
The Python-esque “print()” function has an analogue in C’s “puts(char* str),” which stands for “put string [to terminal],” but only takes a string argument and so is less widely-applicable than the “print()” in Python.