全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Integer type, width?

又称: integer type · width (of an integer type)

Definition 2.1 University Computer Science — Year 1 · 第 2 章 — C: Types, Operators and Control Flow

An integer type of C is a set of whole numbers stored in a fixed number of bits, its width: char, short, int, long and long long, each signed (two’s complement) or unsigned. The standard only sets minimum widths (8, 16, 16, 32 and 64 bits); each machine chooses the real ones. The header <stdint.h> adds types of an exact width: int8_t to int64_t, and uint8_t to uint64_t.

在原文中阅读 →