[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Thu Feb 12 15:48:57 2004 -->
- <!--x-from-r13: nfgrjneg ng ynlgba-tencuvpf.pbz (Oyna Egrjneg) -->
- <!--x-message-id: 402BE450.5090700@layton-graphics.com -->
- <!--x-reference: [email protected]-a-geek.com --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] This is legal C: -->
- <li><em>date</em>: Thu Feb 12 15:48:57 2004</li>
- <li><em>from</em>: astewart at layton-graphics.com (Alan Stewart)</li>
- <li><em>in-reply-to</em>: <<a href="msg00434.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00434.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] This is legal C:</li>
>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>