Hi, when compiling, GCC emits several messages of the type "warning: integer overflow in expression [-Woverflow]". This happens because at least on this environment RAND_MAX+1 is overflowing. Since the source code is just for demonstration, removing the "+1" seems to be fine.
...147483647.
Hi, when compiling, GCC emits several messages of the type "warning: integer overflow in expression [-Woverflow]". This happens because at least on this environment RAND_MAX+1 is overflowing. Since the source code is just for demonstration, removing the "+1" seems to be fine.