using arrays

My first question to the Forum I hope is simple - yet I have spent hours trying to get answers on the web. Simply put:-

if(x < 6)
{
delay(10);
inChar = Serial.read();
inData[x] = inChar;
x++;
inData[x] = '\0';
}

what does the '\0' mean (or do)?

It is a simple question, with a simple answer - it is terminating your string.

Please remember to use code tags when posting code.