Help for this page

Select Code to Download


  1. or download this
    $ cat > a.c
    int a[] = (1,2,3,);
    $ gcc -c a.c
    a.c:1: error: syntax error before ')' token
    
  2. or download this
    $ cat > a.cpp
    int a[] = (1,2,3,);
    $ gcc -c a.cpp
    a.cpp:1: error: expected primary-expression before ')' token