lundi 17 novembre 2014

Behaviour of Pre-increment and Post-increment in C


Vote count:

0




I have code below:



int main()
{
int a = 10;
if (a == a--)
printf("TRUE 1\n");

a = 10;
if (a == --a)
printf("TRUE 2\n");
return 0;
}


and when I compiled the code with gcc the output i am getting TRUE 1 and TRUE 2 both printing on console.But how ??




Sobrique

2,834

asked 4 mins ago







Behaviour of Pre-increment and Post-increment in C

Aucun commentaire:

Enregistrer un commentaire