Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

int x=3+ + + + 3;

 
joshua antony
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


why does the above code compile?
what is the + + adding in between the two numbers.

Thanks in advance
Joshua
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about: int x = 3 + (+(+(+3))); ?
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You wont find something like that on the exam
 
joshua antony
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You wont find something like that on the exam


Thank you,
I am relieved now.

Regards,
Joshua
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic