Doubt regarding the use of tab

Hi Sir/Mam, How are the numbers aligned even after using tab , as the two digit numbers occupy 1 space extra than single digit numbers , so how are they aligned correctly vertically , if we provide one space extra for single digit no. that would compensate the extra space vertically ,that could have solved the case but no such thing is used.

Imagine a ruler with tab stops every 8 spaces. A tab character will align text to the next tab stop.

                                0       8       16      24      32      40
                                |.......|.......|.......|.......|.......|
printf("\tbar\n");              \t      bar
printf("foo\tbar\n");           foo\t   bar
printf("long\tbar");            long\t  bar