arunks
Hey here is the aks
pEOPLE who know C or c++ plz help me
int a=10,s;
s= ++a + a++ + --a + a--;
what would be the poutput for s??
according to me it should be 44 but when i run this code in C it displays 40...
why is it so... plz anybdy help me to understand that?
but if i use this
int a=10,s;
printf("%d",++a + a++ + --a + a--);
this code displays 44 as expected by me..
But according to me no difference should be there in above two codes..
Plz reply fast as i need this answer urgently
int a=10,s;
s= ++a + a++ + --a + a--;
what would be the poutput for s??
according to me it should be 44 but when i run this code in C it displays 40...
why is it so... plz anybdy help me to understand that?
but if i use this
int a=10,s;
printf("%d",++a + a++ + --a + a--);
this code displays 44 as expected by me..
But according to me no difference should be there in above two codes..
Plz reply fast as i need this answer urgently