[bitlug] Re: Interesting problem - revisited

  • From: Turuvanur Pavan-A20404 <pavan.tc@xxxxxxxxxxxx>
  • To: bitlug@xxxxxxxxxxxxx
  • Date: Sat, 29 May 2004 11:30:55 +0530

> int i;
> main ()
> {
>   for (; i["]<i;++i){--i;}"]; read ('-' - '-', i++ + "hell\
> o, world!\n", '/' / '/'));
> }
> 
> read (j, i, p)
> {
>   write (j / p + p, i-- - j, i / i);
> }
> 

> following that is the call to read() which is defined in the 
> program and the arguments to it are '-' - '-', which is 0 
> ('-' minus '-'), pointer to "hello, world!\n" indexed by i again.
> '/' / '/' is 1, since it is "something divided by the samething". 

One thing that i did not mention is the way read is defined.
The datatypes of the function arguments is not explicitly declared.
Hence, it defaults to int.

TC

Other related posts: