[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem compiling
From: |
ezra peisach |
Subject: |
Re: Problem compiling |
Date: |
Tue, 13 May 2003 13:20:46 -0400 (EDT) |
> Thanks for the patches. I do have one question:
>
> ! char str[2] = { c, 0 };
>
> What is wrong with this? Why does the initialization have to have a
> constant value? I could declare int x = c, so why not able to use a
> variable as an array element initializer?
Personally - I do not have a problem with it... It's the stupid SGI
compiler that flagged it as an error... I;ve seen it before in that it
does not like to initialize arrays in such a fashion...
Ezra