0

can anyone answer this with correct explanation int i=0; printf("%d%d%d%d",--i, ++i, i--, i++);

15th Aug 2016, 10:50 AM
fb@ankit.singhal.357
fb@ankit.singhal.357 - avatar
12 Respuestas
+ 1
answer is 0010
15th Aug 2016, 12:11 PM
fb@ankit.singhal.357
fb@ankit.singhal.357 - avatar
+ 1
void main() { int a,b,c,d, a=15; b=a - -; /*b=15 a=14 */ c= - - a ;. /*a=13 c=13 */ d= a + + ; /*d=13 a=14 */ e = + + a ; /* a=15 e=15 */ printf("\n ℅d ℅d ℅d ℅d",b,c,d,e); getch(); }
31st Aug 2016, 6:02 AM
Bibhuranjan Nayak
Bibhuranjan Nayak - avatar
0
no
15th Aug 2016, 12:08 PM
John Moises Pascua
John Moises Pascua - avatar
0
can anyone explain pls
15th Aug 2016, 12:12 PM
fb@ankit.singhal.357
fb@ankit.singhal.357 - avatar
0
X u have taken as variable then Wr does I comes
15th Aug 2016, 12:38 PM
narendra
narendra - avatar
0
look at it carefully
15th Aug 2016, 1:16 PM
fb@ankit.singhal.357
fb@ankit.singhal.357 - avatar
0
but everytime i got the same answer..
15th Aug 2016, 1:52 PM
fb@ankit.singhal.357
fb@ankit.singhal.357 - avatar
0
Post-increment returns a copy of the original value. Pre-increment returns a copy of the original value plus 1
16th Aug 2016, 2:17 PM
Oren Dighorker
Oren Dighorker - avatar
- 1
-1,+1,0,0
15th Aug 2016, 1:55 PM
narendra
narendra - avatar