0

Where we use /t in c++ ?

5th Nov 2016, 2:16 AM
Rani Pandey
5 Answers
+ 3
not just for C++.most languages have this utility to get a horizontal space cout<<"\t"<<hello<<"\t"; System.out.println(*\t"+hello+"\t");
5th Nov 2016, 2:25 AM
Sandeep Balachandran
Sandeep Balachandran - avatar
0
first, its "\t". it is used for giving a horizontal tab.
5th Nov 2016, 2:22 AM
kamal joshi
kamal joshi - avatar
0
actually not as tab, but like multiple spaces.. tab has a bit different function...
5th Nov 2016, 1:55 PM
Laluprasad
Laluprasad - avatar
0
can you tell me what different function does a tab have from multiple spaces. Because I used to consider them the same.
5th Nov 2016, 2:08 PM
kamal joshi
kamal joshi - avatar
0
... if I use tab... it will print like.. 12 143 21 142 231 132 ... where the above numbers are exactly above the below ones but using multiple space option.. 12 143 21 142 231 232 .. where constant number of spaces are used..
5th Nov 2016, 2:19 PM
Laluprasad
Laluprasad - avatar