+ 1

Difference between \v and \f in c++

What is the difference between vertical escape \v and form feed \f in c++ in the output . Can you give an example for it. Help me please

8th Nov 2019, 1:56 PM
Armina
Armina - avatar
6 Answers
+ 4
\v gives a vertical tab, isn't it? Whereas \f takes you to the beginning of a new page. If you are using Linux may be it would be easy to test and see for yourself.
8th Nov 2019, 5:14 PM
Avinesh
Avinesh - avatar
+ 2
Armina you're welcome
8th Nov 2019, 5:24 PM
Avinesh
Avinesh - avatar
+ 1
\f skips to the next page. Yet both are rarely used.
8th Nov 2019, 4:48 PM
Aaron Eberhardt
Aaron Eberhardt - avatar
+ 1
Thanks So do they always have the same output? for example this cod: #include <iostream> using namespace std; int main() { cout<<"hello\vworld"<<endl; cout<<"hello\fworld"<<endl; return 0; }
8th Nov 2019, 5:04 PM
Armina
Armina - avatar
+ 1
Thank Avinesh
8th Nov 2019, 5:22 PM
Armina
Armina - avatar