decrement operator in c/c++ | before the variable

main()
{
int var=4;
printf(“%d”,--var);
}
Tutorial answer:3
Debugging solution:--var indicate
First it decrement the value then
It assign the value.because decrement operator come the before the variable.

Related post