3

C having a JS moment:
puts("-0.5" + 1);

Output:
0.5

Comments
  • 1
    There are some other goodies there:

    https://reddit.com/r/...
  • 1
    Not really comparable to javascript, with gcc you get a warning even without any flags. The computer does also not guess your goal, like it does in javascript, but it is just pointer arithmetic.
  • 0
    From the comments:

    printf("%i\n", 50**"2" );

    Will print:

    2500
Add Comment