home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!bnr.co.uk!uknet!mcsun!sunic!dkuug!diku!cthulhu
- From: cthulhu@diku.dk (Stefan Krabbe)
- Newsgroups: comp.lang.c
- Subject: Re: Question to test general C knowledge
- Message-ID: <1992Dec20.134537.29673@odin.diku.dk>
- Date: 20 Dec 92 13:45:37 GMT
- References: <Bz0A46.Cvu@watserv1.uwaterloo.ca> <1992Dec12.111409.147@ondec.lonestar.org> <1992Dec16.231449.22903@cs.uow.edu.au> <rfries.150@sceng.ub.com>
- Sender: cthulhu@embla.diku.dk
- Organization: Department of Computer Science, U of Copenhagen
- Lines: 22
-
- rfries@sceng.ub.com (Robert Fries) writes:
-
- > > > "this is a test"[4]
- > > I give up. What is it?
- > The value is ' '.
- > An even more bizarre way of writing it is:
- > 4["this is a test"]
-
- >Yes, it works, and yes, this is another example of the useless things
- >you can learn by reading news articles.
-
- Hmm. I don't think it's useless. It also follows logically from this:
-
- ptr[i] == *(ptr + i) == *(i + ptr) == i[ptr]
-
- Kind Regards
- Stefan
- --
- ___
- Name: Stefan Krabbe .......(o o).......
- Email: cthulhu@diku.dk ---vvv---U---vvv---
- Institute of Computer Science, University of Copenhagen.
-