title: '\t' character space differance in same printf() function in array
body: <p>I've written this C code and compile in GNU GCC and TURBO C compiler both in windows 8.1. The code have float array of size 20 and print the array using for loop and '\t' character put into the printf() function into the for loop for spacing purpose.
  In the entire loop in 20 times the '\t' should print equal spaces but it print only 2 space for value of a[i]  0 to 10 and regualr space in remaining execution.
  I cannot understand why this happen. Does it is happen due to I use after printing float variable?</p>
  
  <p>the code C code is as shown below:</p>
  
  <pre><code>#define n 20
  
      int main()
      {
          float a[n]={0.1,0.9,0.23,0.8,0.32,0.57,0.4,0.14,0.25,0.11,0.7,0.86,0.75,0.19,                    0.55,0.95,0.34,0.29,0.64,0.45},ex,temp,x;
          int i,idx;
          system("cls");
  
          /*for(i=0 ; i&lt;n ; i++)
          {
              printf("a[%d]: %f\t",i,a[i]);
          }*/
  
          for(i=0 ; i&lt;n ; i++)
          {
              x=a[i];
              idx=a[i]*10;
  
              printf("\na[%d]: %f \t idx: %d",i,a[i],idx);
              //printf("\na[%d]: %f *\t idx: %d",i,a[i],idx);
          }
  
          getch();
          return 0;
      }
  </code></pre>
  
  <p>The Image of O/p is as below:</p>
  
  <p><a href="https://i.stack.imgur.com/D2RTN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D2RTN.png" alt="enter image description here"></a></p>
  
  <p>As per o/p shown in Image the space in red lined area is lesser than blue lined area. How this possible? what is the reason of it? </p>