4 ms·
I am not sure that would be valid. You could also use a defined constant as the limit in the Fortran program. In other words, you could argue that SIZE_MAX is p
by yiyus 7y ago
I am not sure that would be valid. You could also use a defined constant as the limit in the Fortran program. In other words, you could argue that SIZE_MAX is part of the program, the same as the Fortran array size is defined in the program. But I am not sure it would be invalid either... just wondering.
- Amelorate 7y agoWouldn't it be possible to, with a really strange number format for integers, define SIZE_MAX as INFINITY? C doesn't require twos-compliment numbers, after all.
- yiyus 7y ago> Wouldn't it be possible to, with a really strange number format for integers, define SIZE_MAX as INFINITY? That's a very interesting question that got me thinking for quite a while and the only conclusion I reached is that you deserve an upvote.