Why is there a keyword "signed" if its default?
Page 1 of 114 Replies - 843 Views - Last Post: 06 September 2011 - 07:57 AM
#1
Why is there a keyword "signed" if its default?
Posted 06 September 2011 - 03:26 AM
Replies To: Why is there a keyword "signed" if its default?
#2
Re: Why is there a keyword "signed" if its default?
Posted 06 September 2011 - 03:33 AM
This post has been edited by darek9576: 06 September 2011 - 03:33 AM
#3
Re: Why is there a keyword "signed" if its default?
Posted 06 September 2011 - 03:35 AM
#4
Re: Why is there a keyword "signed" if its default?
Posted 06 September 2011 - 03:42 AM
This post has been edited by hulla: 06 September 2011 - 03:43 AM
#5
Re: Why is there a keyword "signed" if its default?
Posted 06 September 2011 - 03:53 AM
Joe Random Programmer can also be you, not always some other person when working in a group.
#6
Re: Why is there a keyword "signed" if its default?
Posted 06 September 2011 - 04:01 AM
#7
Re: Why is there a keyword "signed" if its default?
Posted 06 September 2011 - 04:03 AM
#8
Re: Why is there a keyword "signed" if its default?
Posted 06 September 2011 - 04:05 AM
#9
Re: Why is there a keyword "signed" if its default?
Posted 06 September 2011 - 04:24 AM
#10
Re: Why is there a keyword "signed" if its default?
Posted 06 September 2011 - 04:31 AM
#11
Re: Why is there a keyword "signed" if its default?
Posted 06 September 2011 - 04:40 AM
This post has been edited by GWatt: 06 September 2011 - 04:41 AM
#12
Re: Why is there a keyword "signed" if its default?
Posted 06 September 2011 - 04:46 AM
#13
Re: Why is there a keyword "signed" if its default?
Posted 06 September 2011 - 05:02 AM
#14
Re: Why is there a keyword "signed" if its default?
Posted 06 September 2011 - 06:52 AM
PlasticineGuy, on 06 September 2011 - 11:31 AM, said:
No it doesn't.
An unqualified char may be signed or unsigned (depending on the implementation).
Which is why gcc has -funsigned-char as an option.
#15
Re: Why is there a keyword "signed" if its default?
Posted 06 September 2011 - 07:57 AM
GWatt, on 06 September 2011 - 01:40 PM, said:
This is not true. The signedness of char is indeed unspecified, but shorts, ints, longs and long longs are all defined to be signed. That's also why limits.h defines both SCHAR_MIN/SCHAR_MAX and CHAR_MIN/CHAR_MAX, but doesn't do the same for any other type.
|
|

New Topic/Question
Reply




MultiQuote








|