<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN"><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<META content='"MSHTML 4.72.3110.7"' name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#000000>the following are some snippets whose results surprise
me.</FONT></DIV>
<DIV><FONT color=#000000></FONT> </DIV>
<DIV><FONT color=#000000>main()<BR>{<BR> int
i=10;<BR> printf("%n",&i);<BR> printf("...%d",i);<BR>}</FONT></DIV>
<DIV><FONT color=#000000><STRONG>...0</FONT> </STRONG></DIV>
<DIV> </DIV>
<DIV><FONT color=#000000>void main()<BR>{<BR> printf("%p
",main);<BR>}</FONT></DIV>
<DIV><FONT color=#000000><STRONG>0291</STRONG></FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#000000>void main()</FONT></DIV>
<DIV><FONT color=#000000></FONT>{</DIV>
<DIV><FONT color=#000000> printf("%x",-1);</FONT></DIV>
<DIV><FONT color=#000000></FONT>}</DIV>
<DIV><STRONG></STRONG><STRONG>ffff</STRONG></DIV>
<DIV><FONT color=#000000>(i understand that negative nos are stored in 2's
complement form.</FONT></DIV>
<DIV><FONT color=#000000></FONT> <FONT color=#000000>but when retrieving
also it should do 2's complement and output)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#000000></FONT> </DIV>
<DIV><FONT color=#000000>Regards, <BR>Srinath
Thiruvengadam<BR></FONT></DIV></BODY></HTML>