• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

byte problem

 
raj koura
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using a byte variable because the value to be stored is an integer between 1-50.
byte x;
x = 1;
x = x + 2; // problems (explicit cast required)
is there any other way to execute this without having to use typecasting?
raj.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic