• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why i am not getting this??  RSS feed

 
RatiKanta pal
Ranch Hand
Posts: 88
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


this is fine.



this moving infinite loop.Why??Please explain experts
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.coderanch.com/how-to/java/PostIncrementOperatorAndAssignment


BTW, both "i=++i" and "i=i++" are not very useful. In the case of the first, it can just be replaced with an increment (pre or post). And the second can be removed entirely.

Henry
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!