On Nov 2, 2007 1:29 PM, debasish deka <[EMAIL PROTECTED]> wrote:
> Recently I read in some topic about C99 - modifications to ANSI C. That it
> had facility for runtime varying array compatibility. So I tried this short
> program on DevC++. But it was full with warnings
> int main(int argc, char *argv[])
> {
> int n = 5;
> int arr[n] = {1,2,3,4,5};
> while(n--)
> printf("\nelement is %d\n",arr[n]);
> system("PAUSE");
> return 0;
> }
> Would anyone direct me into this matter
> And yes, I am using the latest down loaded version of devC++ with all
> optimizations enabled.
DevC++ uses gcc underneath (mingw), so you'd need to see what gcc
supports for C99:
http://gcc.gnu.org/c99status.html
-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi