Skip to main content
deleted 32 characters in body
Source Link
Nick
  • 951
  • 6
  • 4

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, processor, operating system, universe, and cosmic ray activity.processor :)

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, processor, operating system, universe, and cosmic ray activity. :)

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 :)

Source Link
Nick
  • 951
  • 6
  • 4

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, processor, operating system, universe, and cosmic ray activity. :)