The "printf" function in C is used to display output to the console or a file, formatted according to specified format strings.