Execute prints backwards
Commodore 64 BASIC
40 print "Line 1"
30 print "Line 2"
20 print "Line 3"
10 print "Line 4"
PHP
Abusing precedence... :-)
!print "Line1\n".
!print "Line2\n".
!print "Line3\n".
!print "Line4\n";
C
Undefined behavior is the most exciting kind of behavior!
f(){}
main()
{
f(printf("Line 1\n"),
printf("Line 2\n"),
printf("Line 3\n"),
printf("Line 4\n"));
}
Actual output may vary depending on your compiler, linker, operating system, and processor :)