Topic: Equivalence relation (correction)
Author: "Christopher M. Gurnee" <gurnec_at_mediaone_dot_net@127.0.0.1>
Date: 1998/11/12 Raw View
Christopher M. Gurnee wrote in message ...
>Specifically, the following:
>
>char a[16];
>char b[16];
>
>cout << boolalpha << (a+16 == b) << (b + 16 == a);
>
>must print "truetrue" (assuming, of course, the locale library wasn't
>broken in this regard : )
I shouldn't be insulting the standard when I can't get my own simple
examples right : )
That should have been "falsefalse" : P
-Chris Gurnee
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]