• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

++ needs an explicit cast

 
manal
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
byte b = ++7; is valid
BUT
byte b1 = 7;
byte b2 = ++b1; needs an explicit case
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, I think ++ and -- works fine for byte type, and I tried it, it's OK.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic