signed specifier

   
signed specifier Signed integer type specifier

  simple-type-specifier  := signed 

The signed keyword can be used alone to mean signed int or combined with other type specifiers to force the type to be signed. The int , short , and long types are implicitly signed, so it is most often used with signed char to implement a signed integral value whose range is the smallest that the compiler allows.

figs/acorn.gif

A signed integer can be represented using two's complement, ones' complement, or signed magnitude.

See Also

char , int , long , short , type , unsigned , Chapter 2

   


C++ in a Nutshell
C++ in a Nutshell
ISBN: 059600298X
EAN: 2147483647
Year: 2005
Pages: 270
Authors: Ray Lischner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net