tag:blogger.com,1999:blog-8260739278874294486.post3370635674261519780..comments2021-12-16T15:28:31.042-08:00Comments on Tsuna's blog: Compile-time assertion to detect signed and unsigned types in Ctsunahttp://www.blogger.com/profile/06114951663056205324noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-8260739278874294486.post-5649278116384176462013-09-05T01:30:29.479-07:002013-09-05T01:30:29.479-07:00Thanks for taking the time to find the answer and ...Thanks for taking the time to find the answer and publish it.. :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8260739278874294486.post-24546850427854314462010-01-17T17:51:07.396-08:002010-01-17T17:51:07.396-08:00Nice brief and this mail helped me alot in my coll...Nice brief and this mail helped me alot in my college assignement. Say thank you you as your information.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8260739278874294486.post-45138401973782855692008-10-02T11:56:00.000-07:002008-10-02T11:56:00.000-07:00So If I translate the previous comment via Google'...So If I translate the previous comment via Google's language tools, it (approximately) reads:<BR/>"If I were to char and the value of the OR for 0xffffff computing, and then detect whether or not less than 0, can not know whether this char for unsigned or signed it?<BR/>Xiangliaoyixiang 1:00 am sorry, did not write a small program Test"<BR/><BR/>To which I'd answer that I don't see any benefit especially since 0xffffff is a fixed value and it's not suitable for all numeric data type (some are shorter, some are larger).tsunahttps://www.blogger.com/profile/06114951663056205324noreply@blogger.comtag:blogger.com,1999:blog-8260739278874294486.post-46535875941470371712008-10-01T07:26:00.000-07:002008-10-01T07:26:00.000-07:00如果我將此 char 的值 與 0xffffff 作 OR 運算,然後偵測是否小於 0 ,不就可知道...如果我將此 char 的值 與 0xffffff 作 OR 運算,然後偵測是否小於 0 ,不就可知道此 char 是否為 signed 或是 unsigned 了嗎?<BR/>抱歉一時想了一想,沒寫個小程式測測Anonymoushttps://www.blogger.com/profile/02653583247099525984noreply@blogger.com