PICmicro & dsPIC >> PICmicro & dsPIC

bos
stranger


Reged: Mar 21 2009
Posts: 4
Confusing paragraphs in PICC-manual
      Sun Mar 22 2009 04:42 PM

Section 3.4.3, first paragraph:

Quote:

HI-TECH PICC supports both signed char and unsigned char 8-bit integral types. If the signed or unsigned keyword is absent from the variable’s definition, the default type is unsigned char unless the PICC --CHAR=signed option is used, in which case the default type is signed char.



Sounds good, unsigned chars per default is what I want.

Reading further on, third paragraph:

Quote:

Variables may be declared using the signed char and unsigned char keywords, respectively, to hold values of these types. Where only char is used in the declaration, the type will be signed char unless the option, mentioned above, to specify unsigned char as default is used.



Now I'm confused, since the two paragraphs claim the opposite to the other's.

So, without using --CHAR=(un)signed, will "char foo;" be signed or unsigned per default?

Post Extras Print Post   Remind Me!     Notify Moderator


Entire topic
Subject Posted by Posted on
* Confusing paragraphs in PICC-manual bos Sun Mar 22 2009 04:42 PM
. * * Re: Confusing paragraphs in PICC-manual clydeAdministrator   Mon Mar 23 2009 01:06 AM
. * * Re: Confusing paragraphs in PICC-manual bos   Mon Mar 23 2009 01:28 AM
. * * Re: Confusing paragraphs in PICC-manual Neil_K   Mon Mar 23 2009 12:15 PM

Extra information
4 registered and 32 anonymous users are browsing this forum.

Moderator:  mikerj, jtemples, jeff, Dan Henry, Andrew L 



Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating:
Thread views: 469

Rate this thread

Jump to

Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5