home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!UB.com!pippen.ub.com!rfries
- From: rfries@sceng.ub.com (Robert Fries)
- Subject: Re: Question to test general C knowledge
- Message-ID: <rfries.151@sceng.ub.com>
- Sender: news@pippen.ub.com (The Daily News)
- Nntp-Posting-Host: 128.203.1.151
- Organization: Ungermann Bass
- References: <Bz0A46.Cvu@watserv1.uwaterloo.ca> <1992Dec12.111409.147@ondec.lonestar.org> <1992Dec16.231449.22903@cs.uow.edu.au> <rfries.150@sceng.ub.com>
- Date: Thu, 17 Dec 1992 23:47:19 GMT
- Lines: 28
-
- In article <rfries.150@sceng.ub.com> rfries@sceng.ub.com (Robert Fries) writes:
-
- >In article <1992Dec16.231449.22903@cs.uow.edu.au> davidr@cs.uow.edu.au (David Ian Raymond) writes:
-
- >>d_north@ondec.lonestar.org (David G. North, CCP) writes:
-
- >>>Or better yet, what is the type and value of the following expression:
- >>> "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"]
-
- Oops, as someone pointed out to me, I forgot to mention that the type
- is char, so the value is more precisely (char)' ' , since ' ' is an int.
-
- Robert
-
- //////////////////////////////////////////////////////////////////////////
- Robert Fries
- Ungermann-Bass Inc.
-
- DISCLAIMER:
- Opinions contained herein are my own, and are not necessarily those
- of Ungermann-Bass.
- //////////////////////////////////////////////////////////////////////////
-