I came across a weired situation while using tabs. Mostly tabs are made up of 8 or 4 spaces. But lets say right now its 8
For example
"abc"+"\t"+"bcd" -> abc bcd
"abcderft"+"\t"+"bcd" -> abcderft bcd
Why am getting differences in tab distance
between two strings ?
Checked this post too
https://stackoverflow.com/questions/6000810/printing-with-t-tabs-does-not-result-in-aligned-columns
Didnt clear much.
Even if tab is equivalent to 8 spaces, then why its considering the string count ? I mean if my string length is 3 then next string am getting after only 5 spaces, and if string length is 8 then next string is coming after 8 characters.
Does tabs includes the string length too post which its being added ?