\f
is said to be the form feed. \t
is a tab, \a
is a beep, \n
is a newline. What exactly is a form feed - \f
? The following program
#include <iostream> int main() { std::cout << "hello\fgoodbye" << std::endl; }
prints hello
then a female sign (an upside down holy hand grenade:) and then goodbye
all on one line.
Sometimes abbreviated as FF, form feed is a button or command on the printer that allows the advancement of a printer page. This feature was frequently used on dot matrix printers since nearly all of them used continuous feed paper rather than single sheets.
10. Form Feed(\f) in C. This escape sequence is used for a form feed. Example:- Form Feed. #include <stdio.h>
It skips to the start of the next page. (Applies mostly to terminals where the output device is a printer rather than a VDU.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With