how relevant is C today?

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Tue Apr 11 05:37:24 EDT 2006


In article <e1d4j9$64o$1 at news.lysator.liu.se>,
 Thomas Bellman <bellman at lysator.liu.se> wrote:

>Lawrence D'Oliveiro <ldo at geek-central.gen.new_zealand> writes:
>
>> "const" is in C89/C90.
>
>Although with slightly different semantics from in C++...  For
>instance:
>
>    static const int n = 5;
>    double a[n];
>
>is valid C++, but not valid C.

    enum
      {
        n = 5,
      };
    double a[n];

works in C.



More information about the Python-list mailing list