Follow Us
Contribute
  • Register
Errorbase is a collaborative writing project, that aims to build the largest trouble-shooting guide about all kinds of error messages.

Categories

0 votes

A variable or another expression is used instead of constant expression. A common example is size of arrays.

int i;
int b[i];   // C2057

requested by (170k points)
edited by

1 Solution

0 votes

Change expression to constant expression.

int i;
int b[10];

solved by (1.6k points)
...