Warp <war### [at] tag povray org> wrote:
> clipka <nomail@nomail> wrote:
> > > for(int i=0;i++<10;)vec[i]=i*i;
>
> > Well, that's (1) not plain C but C++
>
> That has been valid C for 10 years now.
There are still environments where the original C89 ANSI-C is *the* C standard.
Not only because of compiler availablility.
For instance, high-reliability systems written in C are often required to be
MISRA-C compliant - which as of today still demands use of plain vanilla C90
ANSI-C (if I'm not mistaken; it may be even C89).
The least common denominator today is still C89 ANSI-C (and actually only a
subset thereof, namely that which is not specified as leading to
compiler-specific or undefined behavior).
Post a reply to this message
|