I need to turn an integer into an array of intervals. For example,I tried:But it doesn't work properly. For example,
I would like to create a range (e.g. (1, 5)) of numbers with some repetitions (e.g. 4): One way would be to write:
unsigned long has 8 bytes on my Linux gcc.unsigned long long has 8 bytes on my Linux gcc, too.So I think the range of integers they can show is from 0 min to (2^64 - 1)max.