Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

int values

 
rani bedi
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
maximun value of int is 0x7fffffff
Why is compiler not generating any errors saying that the number is too large?
 
rani bedi
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
forget it... i just realized my mistake... it was a negative number..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic