Anonymous user
Variable size/Set: Difference between revisions
add C example
m (Stop submissions from overlapping infobox) |
(add C example) |
||
Line 7:
for Response'Size use 1; -- Setting the size of Response to 1 bit, rather than the default single byte size
</lang>
=={{header|C}}==
<lang c>#include <stdint.h>
int_least32_t foo;</lang>
Here <var>foo</var> is a signed integer with at least 32 bits. [[wp:stdint.h#Minimum-width integer types|stdint.h]] also defines minimum-width types for at least 8, 16, 32, and 64 bits, as well as unsigned integer types.
=={{header|D}}==
|