yes that is correct....After the first pass through the loop pdata is equal to rown green orange....After the second pass through it is equal to own green orange

So when it gets to the first space pData = " green orange" which is not qual to NULL so it keep on going

After one more pass through pdata = reen orange and the array = Brown g