Send command for RC Car

can you explain this line:

if(index < 79)
      {
        inData[index] = inChar;
        index++;
        inData[index] = '\0';
      }

I don´t understand the part inData[index]