Printf

Updated: 03/06/2020 by Computer Hope

Print may refer to any of the following:

1. In programming languages such as C, printf is a function that sends text, variables, or another object to the screen. If you're more familiar with the other programming languages, printf is equivalent to the print function. Below is an example of "Hello World!" getting print to the screen in C.

#include <stdio.h>

int main()
{
 printf("Hello World!\n");
}

What does the "f" in printf stand for?

The "f" in printf is short for "formatted" and indicates that the text printed to the screen will be formatted.

2. In the Linux command line, printf is a command that inserts arguments into a user-defined string of text, creating formatted output. See our printf command page for the syntax of this command with examples.

Computer acronyms, Programming terms