Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

You should be able to solve this

Name: Anonymous 2010-06-15 4:34

i = 0; i += i++ + ++i + i--

Name: Anonymous 2010-06-15 4:41

There's no semicolon at the end so it gives an error.

Name: Anonymous 2010-06-15 4:57

The answer is 2.

Name: Anonymous 2010-06-15 8:26

implementation dependant, I'd have thought

Name: Anonymous 2010-06-15 12:33

hard mode:
++i += i++ + ++i + i-- + --i

Name: Anonymous 2010-06-15 12:43

dependant
misuse of sage

sure is toddlers in here

Name: Anonymous 2010-06-15 12:51

>>6
Incidentally, your post was also a misuse of sage. In that you forgot to use it.

Name: Anonymous 2010-06-15 12:53

>>3
<script language="javascript">
var i = 0;

document.write(i + " ");
i += i++;
document.write(i + " ");
i += ++i;
document.write(i + " ");
i += i--;
document.write(i + " ");

i = 0;
i += i++ + ++i + i--;
document.write(" -> " + i);

</script>



0 0 1 2 -> 4

Name: Anonymous 2010-06-15 13:39

>>1
Undefined in C, compile error in any non-retarded modern language.

Name: Anonymous 2010-06-15 13:49

i+=i+++++i

Name: Anonymous 2010-06-15 14:04

int i = 5;

while (i --> 0)
    printf("%d\n", i);


The --> operator!

Name: Anonymous 2010-06-15 15:07

a->b-->c<---d
VALID C CODE

Name: Anonymous 2010-06-15 15:15

>>12
If by ``VALID'' you mean ``INVALID''.

Name: Anonymous 2010-06-15 15:16

>>13
If by ``INVALID'' you mean ``WRITTEN BY AN %s''

Name: Anonymous 2010-06-15 17:08

Perl says 5

Name: Anonymous 2010-06-15 17:37

Javascript says 4.

Name: Anonymous 2010-06-15 18:00

Guido says SyntaxError™.

Name: 4 2010-06-15 18:45

Name: Anonymous 2011-01-31 20:37

<-- check em dubz

Don't change these.
Name: Email:
Entire Thread Thread List