how relevant is C today?
David Rasmussen
david.rasmussen at gmx.net
Mon Apr 10 15:57:40 EDT 2006
Thomas Bellman 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.
>
There are other differences as well. In C, I can't do something like:
int f(void)
{
return 42;
}
const int i = f()
int main()
{
return 0;
}
/David
More information about the Python-list
mailing list