You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code is a little weird, but it should parse because it is indeed a constant. I would recommend trying to figure out what the bug is by diving in to the code, it's the only way you're going to get it fixed.
I have the error :
Error: Initializing non-constant-length array
with the following C code :
typedef enum
{
A = 0,
B = 1
} Enum;
int main (){
char arr[((Enum)1)] = "a";
printf("%s\n",arr);
}
The code above compiles and runs correctly using GCC.
The text was updated successfully, but these errors were encountered: