Abhinav Kumar's Website<!-- --> | <!-- -->Operator precedence in C++

Operator precedence in C++

Posted on November 30, 2013 by Abhinav Kumar in blog

Operator precedence and associativity in C/C++ is not too much unintuitive but

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