Re: How to understand this line of c ?
- From: "tmp123" <tmp123@xxxxxxxxx>
- Date: 31 Dec 2005 10:44:01 -0800
lnzju wrote:
> main(_){for(--_;putchar(_++["J!Mpwf!Zpv\1"]-1););}
Some hints:
* Write the program with the correct tabulation
* Take into account that usually main parameters are argc and argv, but
they can be called with any name. And, if type is not declared K&R
assumes int.
* _ can be the name of a variable.
* Split "for" in its parts: a for statement is divided in
initialization, continue condition and update of state. The first one
and third ones can be empty.
* putchar returns the character written as unsigned int
* integer applied to string returns n-th element. (this is something I
do not know why).
Kind regards.
.
- 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: warning : no new line at end of file
- 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
|