Thanks. I am using lite c. Strangely the same code works fine in lesson 11 of lite c tutorials. I am using this listing as the basis for experimentation. I entered the code just as you have above.