[LCP]sign problem
Srinath Thiruvengadam
rangar20 at eth.net
Thu Aug 9 16:14:50 UTC 2001
hello all,
in one of my programs , i used an unsigned int variable.
i had a problem in this program.
i traced the execution and found that in one place
a negative value goes into the variable.
howz that possible? shouldnt the program end
abnormally on receiving a signed number???
and when i print the number the no. prints as a
negative number. i thought the signed would not
be used for unsigned variables.
whatz happening inside???
Thanks
Srinath.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux.org.au/pipermail/linuxcprogramming/attachments/20010809/f61964bf/attachment.htm
More information about the linuxCprogramming
mailing list