Corrin Lakeland wrote: > > why the program below is wrong?
Generally, it's adviseable not to reply to questions that look like someone who needs help with his school assignments. When someone presents a trivial programming problem based on a nonsensical code fragment and doesn't even tell you what errors the compiler generated, it's a good guess that he never tried to compile it -- the code, and the question "what is wrong with this code" are almost certainly a homework assignment. The best response, if one must respond at all, is simply, "Figure it out yourself -- that's why your teacher gave it to you." Craig
pgpOQZms4L9us.pgp
Description: PGP signature