Re: Integral conversions in C/C++

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andrew Haley wrote:

What type is the expression -(b * 2u)?

The correct answer is unsigned int.

Here's the question: Why ?  And by which logic ?

Please read C99 Section 6.3.1.1 Para 2, and Section 6.3.1.8.

Care to point to the appropriate sections in the C++ standard ?


Cheers,
Christian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux