Having C Program Strange Output

Viewed 36
#include <stdio.h>

int main() {
    int a,b,c=10;
    a++, --b, c=50;
    printf("%d,%d,%d", a,b,c);
    return 0;
}

Why is the output is 1,-1,50? Shouldn't it be 11,9,50?

0 Answers
Related