in reply to Re^3: Build your array with push
in thread Build your array with push

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^5: Build your array with push
by integral (Hermit) on Feb 07, 2006 at 10:14 UTC

    It helps to remember that in C you need to use {} as brackets around a compound initialiser (something which is different from perl, where , has taken on a much greater role).

    thaum:/tmp bsmith$ cat >a.c int a[] = { 1, 2, 3, }; thaum:/tmp bsmith$ gcc -c a.c thaum:/tmp bsmith$

    --
    integral, resident of freenode's #perl