Oh one more thing, I hope your instructor gave this as an example so NON PORTABLE code because it will give you different results every time you use switch compliers. Heeren Pathak s.cs.uiuc.edu zaphod.ncsa.uiuc.edu