• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

arithmetic promotion

 
luk Hann
Ranch Hand
Posts: 48
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please clear my doubt why no need of an explicit casting at line 1:

Thanks.
luk
 
Michael Burke
Ranch Hand
Posts: 103
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you use the += operator the compiler performs an implicit cast for you.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic