play/C/strange_size/i65.c

11 lines
211 B
C
Raw Normal View History

2018-12-10 00:24:05 +00:00
#include <stdio.h>
#include <stdint.h>
int main(int argc, char **argv) {
2018-12-10 00:33:34 +00:00
uint64_t i = 1UL << 63;
uint64_t j = 1UL << 63;
uint64_t k = (i + j) >> 1;
printf("(%lu + %lu) >> 1 = %lu\n", i, j, k);
2018-12-10 00:24:05 +00:00
return 0;
}