Types and sizes - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Reports (Research Report) Year : 2021

Types and sizes


In 6.5.2 of the C standard, sizes are primarily defined for types. Although this is not stated explicitly, it is commonly assumed that such sizes cannot exceed SIZE_MAX. Sizes of *objects* (in contrast to *storage instances* as of TS 6010) are only a deduced property that is in most cases defined through the type that an object has. This proposal attempts to make this approach consistent throughout the standard, and to reduce the number of marginal cases where the interpretation of sizeof is different between C and C++.
n2820.html (27.57 Ko) Télécharger le fichier
n2838.html (29.95 Ko) Télécharger le fichier

Dates and versions

hal-03363692 , version 1 (04-10-2021)




  • HAL Id : hal-03363692 , version 1


Jens Gustedt. Types and sizes. [Research Report] 2838, ISO JTC1/SC22/WG14. 2021. ⟨hal-03363692⟩
43 View
0 Download


Gmail Facebook X LinkedIn More