Declaring an integer with a size
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #include <stdio.h> #include <stdint.h> int main(void) { int8_t number1 = -128; int16_t number2 = 32767; int32_t number3 = 2147483647; int64_t number4 = 9223372036854775807; printf("%d %d %d %llu\n", number1, number2, number3, number4); return 0; } | cs |
0 개의 댓글:
댓글 쓰기