vendredi 26 août 2016

Increment- Decrement Operator in c [duplicate]

This question already has an answer here:

#include<stdio.h>
int main()
{
int s=4;
int x=++s+++s;
printf("%d",x);
}

value of x?? Answer should be 12 but i am getting 11. Anyone please explain the concept.

Aucun commentaire:

Enregistrer un commentaire