Originally posted by K Gupta:
I think the problem is with while loop because the error given is
unreachable statement.But why
It's because the
while(
true) loop cannot be exited. There is no
break statement to get out of that loop. So any instruction after that loop cannot be reached. The compiler can detect that problem.
[ September 01, 2004: Message edited by: Barry Gaunt ]