Demonstrate some escape sequences: \t, tn and \b : Escape Sequences « Development « C++






Demonstrate some escape sequences: \t, tn and \b

Demonstrate some escape sequences: \t, tn  and \b

#include <iostream> 
using namespace std; 
 
int main() 
{ 
  cout << "one\ttwo\tthree\n"; 
  cout << "123\b\b45"; 
 
  return 0; 
}


           
       








Related examples in the same category

1.Output tabOutput tab
2.cout: tab, double quote, and new linecout: tab, double quote, and new line