0

I've got a code like this:

#include <stdio.h>

main() {
    int a=3,b=8;
    b=(b--)*a;
    printf("%i", b);
    getch();
}

A compiler return 24 for b, and another one 23 (dev c++, first version 4.9.9.2 and the other with dev c++ version 5.x).

What's the right? And why?

Thanks.

AliciaBytes
  • 7,300
  • 6
  • 36
  • 47
Kripto
  • 1

0 Answers0