Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #43914

"Code behaving differently in C90, C99, C11, C++98, and C++11"

From Lynn McGuire <lmc@winsim.com>
Newsgroups comp.lang.c++, comp.lang.c
Subject "Code behaving differently in C90, C99, C11, C++98, and C++11"
Date 2016-07-25 16:50 -0500
Organization A noiseless patient Spider
Message-ID <nn61jt$9e7$1@dont-email.me> (permalink)

Cross-posted to 2 groups.

Show all headers | View raw


"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.

Lynn

Back to comp.lang.c++ | Previous | Next — Next in thread | Find similar | Unroll thread


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