first two codes do-not allow to print the output, whereas the last allows it to print the output!
```
1——
for(int i=0; i<=i++; i)
printf("%d\n",i);
2——
for(int i=0,j=0; i<=i++,j<=j++; i,j)
printf("%d\n",i);
3——
for(int i=0,j=0; i<=i++,j=i; i,j)
printf("%d\n",i);
```
I don’t think it has anything to do with ‘debugging or codeblocks’, does it?
Please format the code you posted, by wrapping it in triple backticks. -> `
Whereas ++i allows it to print in first stance itself!
this is all wrong
try to avoid always that kind of comparisons, if you want to learn post/pre increment/decrement, there are other ways
Обсуждают сегодня