I get the compile error: "expression must have a constant value"
, even though size is a constant. where is my fault ı can't find it??
void foo(int n)
{
int x[n];
int i = 5;
if (i == 0)
i--;
x[i] = 5; //OK, since i is 4
}