Re: How to understand this line of c ?
- From: "pemo" <usenetmeister@xxxxxxxxx>
- Date: Sat, 31 Dec 2005 19:27:32 -0000
"lnzju" <geniuslee@xxxxxxxxx> wrote in message
news:1136051664.299850.274430@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> main(_){for(--_;putchar(_++["J!Mpwf!Zpv\1"]-1););}
Here it is a little clearer [hopefully?]
#include <stdio.h>
// x will be 1 (the name of this app would be in argv[0]) if we
// don't invoke the app with some args.
//
main(x)
{
char c;
// zero then!
//
--x;
while(c = "J!Mpwf!Zpv\1"[x])
{
// No need for the -1 if we add 1 to the literal's characters...
//
// "I Love You\1"
//
c = c - 1;
x++;
putchar(c);
}
}
.
- References:
- How to understand this line of c ?
- From: lnzju
- How to understand this line of c ?
- Prev by Date: Re: How to understand this line of c ?
- Next by Date: Re: How to understand this line of c ?
- Previous by thread: Re: How to understand this line of c ?
- Next by thread: Re: How to understand this line of c ?
- Index(es):
Relevant Pages
|