I have the program:
static int var1;
static int var2;
static void f1(void){
int local_var1;
local_var1 = var2 - var1;
return;
}
I get a compilation error:
Serious error: C2953E: Illegal in the context of an l-value: 'unary -'
and it refers to the line "local_var1 = var2 - var1;"
Any ideas what's going on?
static int var1;
static int var2;
static void f1(void){
int local_var1;
local_var1 = var2 - var1;
return;
}
I get a compilation error:
Serious error: C2953E: Illegal in the context of an l-value: 'unary -'
and it refers to the line "local_var1 = var2 - var1;"
Any ideas what's going on?