javascripthtmlcvariablesmicr

Assignment aand Precedence of operators in c


somebody explain this please don't anyy me with ridiculous code

#include<stdio.h>
#include<conio.h>
int main()
{ 
    int a = 5 ;
    printf( "%d %d %d %d %d", a, ++a, a++,--a,a--);
    getchar();
    return 0;
}

Solution

  • The order in which the arguments of printf are evaluated is implementation specific. Output change from machine to machine.