Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #43917
| From | Joe Pfeiffer <pfeiffer@cs.nmsu.edu> |
|---|---|
| Newsgroups | comp.lang.c++, comp.lang.c |
| Subject | Re: "Code behaving differently in C90, C99, C11, C++98, and C++11" |
| Date | 2016-07-25 17:42 -0600 |
| Organization | A noiseless patient Spider |
| Message-ID | <1btwfdffo9.fsf@pfeifferfamily.net> (permalink) |
| References | <nn61jt$9e7$1@dont-email.me> |
Cross-posted to 2 groups.
Lynn McGuire <lmc@winsim.com> writes: > "Code behaving differently in C90, C99, C11, C++98, and C++11" > https://kristerw.blogspot.com/2016/07/code-behaving-differently-in-c90-c99.html > > "There are some subtle differences between the revisions of the C > standard that makes it possible to create programs that behaves > differently depending on if they are compiled as C90, C99, or > C11. Similarly, C++ is mostly a superset of C, but there are > constructs that produce different results for C and C++." > > "For C99 the stars have eyes, C++11 prints circles, etc. (There is > more to this. The program reads text from standard input, and the > output is obfuscated C90 source code that prints that text — all the * > characters are pointer dereferences!)" > > Ok, the source code picture is cool. Writing stuff like this takes a special kind of crazy.
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
"Code behaving differently in C90, C99, C11, C++98, and C++11" Lynn McGuire <lmc@winsim.com> - 2016-07-25 16:50 -0500
Re: "Code behaving differently in C90, C99, C11, C++98, and C++11" Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2016-07-25 17:42 -0600
Re: "Code behaving differently in C90, C99, C11, C++98, and C++11" red floyd <no.spam@its.invalid> - 2016-07-26 10:12 -0700
Re: "Code behaving differently in C90, C99, C11, C++98, and C++11" Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2016-07-26 12:15 -0600
csiph-web