You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Although many common implementations use a two's complement representation of signed integers, the C99 standard declares this as implementation-defined, and allows all of the following representations:

  • Sign and magnitude
  • Two's complement
  • Ones' complement

Noncompliant Code Example


Compliant Solution


Risk Assessment

References

[[ISO/IEC 9899:1999]] Section 6.2.6.2

  • No labels