Hey,
It was mentioned elsewhere that printf("%d", INT_MAX);
is implementation-defined. Why? Is it because INT_MAX
value is implementation-defined so output depends
on implementation, or is it something more subtle so
that output of the following is also implementation-defined:
if (INT_MAX == 65535)
printf("%d", INT_MAX);
else
printf("%d", 65535);
Thanks,
Yevgen
It was mentioned elsewhere that printf("%d", INT_MAX);
is implementation-defined. Why? Is it because INT_MAX
value is implementation-defined so output depends
on implementation, or is it something more subtle so
that output of the following is also implementation-defined:
if (INT_MAX == 65535)
printf("%d", INT_MAX);
else
printf("%d", 65535);
Thanks,
Yevgen
Comment