[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



>Someone sent me this. It's an interesting oddity. Try it on your
>favorite C compiler!
>
>	bjorn
>
>--------------------------------------------------
>
>/* Find the strangeness! Spotted on kuro5hin... */
>#include <stdio.h>
>
>char *foo[] = {"what", "the", "heck", "is", "this"};
>
>int main(int argc, char **argv)
>{
>  int j=2;
>  printf("Test: %s\n", j[foo]);
>  return 0;
>}
>  
>

Now forget that you every saw it. If someone working for me actually 
coded something like I think I'd fire 'em.

-- 

D. Alan Stewart
Senior Software Developer
Layton Graphics, Inc.
155 Woolco Drive
Marietta, GA 30065
Voice: 770/973-4312
Fax: 800/367-8192
<a  rel="nofollow" href="http://www.layton-graphics.com";>http://www.layton-graphics.com</a>



</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00434" href="msg00434.html">[ale] This is legal C:</a></strong>
<ul><li><em>From:</em> bjorn at sccs.swarthmore.edu (Bjorn Dittmer-Roche)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00443.html">[ale] emerge rsync question</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00445.html">[ale] emerge rsync question</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00443.html">[ale] emerge rsync question</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00468.html">[ale] This is legal C:</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00444"><strong>Date</strong></a></li>
<li><a href="threads.html#00444"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>