K
Kenneth Brody
Jean-Marc Bourguet said:Army1987 said:On Sun, 08 Jul 2007 13:31:55 -0700, Keith Thompson wrote:
[snip]Like this:How do we know how the implementor defines INT_MIN?
#include <stdio.h>
#include <limits.h>
#define STR(x) STR_(x)
#define STR_(x) #x
int main(void)
{
puts(STR(INT_MIN));
return 0;
}
It is a strictly conforming program.
No. It's output is implementation dependant.
How strict is the definition of "strictly conforming program"? If
puts("Hello world.") outputs a different string for ASCII systems
versus EBCDIC systems, is this no longer "strictly conforming"?
(Yes, a display device which interprets ASCII/EBCDIC bit patterns
will display the same text, but the bits that are sent to stdout
are different.)
--
+-------------------------+--------------------+-----------------------+
| Kenneth J. Brody | www.hvcomputer.com | #include |
| kenbrody/at\spamcop.net | www.fptech.com | <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------+
Don't e-mail me at: <mailto:[email protected]>