Image

Imagedarkain wrote in Imagecpp 🤔curious

Question..

Here is a nice little peice of trivia for everyone.  Basically, tell me what will print on the screen.  (I'll give you a hint, it isn't consistant between compilers, so i'm more or less wondering what versions of what compilers produce what results)

/*volatile is used to prevent compiler from
    optimizing this line and the next line together */
void test()
{
  volatile int x=1; 
  x = x++;
  printf("%d\n", x);
}