tag:blogger.com,1999:blog-6454006.post8175609735792647285..comments2024-01-16T14:32:49.175+00:00Comments on Arcane Sentiment: A surprising autoconversionArcane Sentimenthttp://www.blogger.com/profile/04144052171693893368noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-6454006.post-76432654367468196502010-12-15T18:32:19.922+00:002010-12-15T18:32:19.922+00:00This isn't supper surprising to me. In genera...This isn't supper surprising to me. In general, C never performs operates on chars, just ints. This is because most machines have integer operations only for one or two word sizes.<br /><br />In C, the expression 'a'+'b' actually implicitly up-converts the chars to ints before doing the addition.<br /><br />C++ inherits a lot of this from C, so there you have it.Anonymousnoreply@blogger.com