+ 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
6 Réponses
+ 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.
+ 2
Armina you're welcome
+ 1
\f skips to the next page. Yet both are rarely used.
+ 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;
}
+ 1
Thank Avinesh