tag:blogger.com,1999:blog-5638522173010853902.post2404534691631754964..comments2013-05-14T05:49:17.403-07:00Comments on C99 Tutorial: Part 10 - ArraysBrandin Creechnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-5638522173010853902.post-79663165904149254032012-12-30T14:28:23.936-08:002012-12-30T14:28:23.936-08:00If anything I would expect &#39;Z&#39;-&#39;A&#39;...If anything I would expect &#39;Z&#39;-&#39;A&#39; is 25. In any case make the following assumptions for the purpose of the exercise:<br />1. the input includes only small letters, capital letters or digits<br />2. characters of the same class are in the same numerical range<br />For real programs that are meant to be used in real life, use isupper() as you mentioned.Brandin Creechhttps://www.blogger.com/profile/03631722955423356827noreply@blogger.comtag:blogger.com,1999:blog-5638522173010853902.post-69497388260275977192012-12-27T21:04:51.489-08:002012-12-27T21:04:51.489-08:00You are teaching people to write non-portable code...You are teaching people to write non-portable code. I&#39;m sure your students will become very good at it.modifiable lvaluehttps://www.blogger.com/profile/05331856988391037655noreply@blogger.comtag:blogger.com,1999:blog-5638522173010853902.post-52077267294274671942012-12-27T12:28:44.919-08:002012-12-27T12:28:44.919-08:00Please show me where in the C standard it says tha...Please show me where in the C standard it says that &#39;Z&#39; - &#39;A&#39; is 26, that these supposed 26 characters consist solely of the set of uppercase letters or that they are in order. Your uppercase checks break when EBCDIC is the character set being used. I suggest using isupper.modifiable lvaluehttps://www.blogger.com/profile/05331856988391037655noreply@blogger.com