“Initializer element is not constant” in C

Could you tell me what’s wrong? When I try to compile it I see an error:Initializer element is not constant. It’s about 2nd line, probably going about x.

float x = 10;
float d = x/100;
float a = 0;

Leave a Comment