The New C Standard- P7

Tham khảo tài liệu 'the new c standard- p7', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Boolean characters and integers 668 Why would a vendor provide an extended type that is the same width as one of the standard integer types The translator vendor may support a variety of different platforms and want to offer a common set of typedefs across all supported platforms in the header. This could have the effect on some platforms of an extended integer type having the same width as one of the standard integer types. A vendor may also provide more than one representation of integer types. For instance by providing support for extended integer types whose bytes have the opposite endianness to that of the standard integer types. 570 endian C The C Standard specifies no requirements on how an implementation might extend the available integer types. 665 The rank of char shall equal the rank of signed char and unsigned char. char rank Commentary This statement is needed because the type char is distinct from that of the types signed char and unsigned char 537 char car . separate type 666 The rank of _Bool shall be less than the rank of all other standard integer types. Commentary This does not imply that the object representation of the type _Bool contains a smaller number of bits than any other integer type although its value representation must . C Bool rank 593 unsigned integer types object representation Ai described below bool values behave as integral types. An rvalue of type bool can be converted to an rvalue of type int with false becoming zero and true becoming one. The C Standard places no requirement on the relative size of the type bool with respect to the other integer types. An implementation may choose to hold the two possible values in a single byte or it may hold those values in an object that has the same width as type long. Other Languages Boolean types if supported are usually viewed as the smallest type irrespective of the amount of storage used to represent them. 667 The rank of any enumerated type shall equal

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
26    16    1    20-10-2021
5    22    2    20-10-2021
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.