#include<stdio.h>
#include<conio.h>
main()
{
int i=2;
i=i---i--;
printf("%d",i);
getch();
}
I don't understand why output of this program is 1. I guess it may be precedence of operators. but I don't figure out why this.
#include<stdio.h>
#include<conio.h>
main()
{
int i=2;
i=i---i--;
printf("%d",i);
getch();
}
I don't understand why output of this program is 1. I guess it may be precedence of operators. but I don't figure out why this.