I
iC and iC++
When programming in Visual Studio, i get an error like this: error
C2143: syntax error : missing ';' before 'type'
So, for example, if you have a function like:
int func(int x)
{
int y = x/4;
return y;
}
You would need to rewrite your code like this:
int func(int x)
{
int y;
y = x/4;
return y;
}
I wonder why that is and also if there is an option somewhere to turn
off.
Thanks
C2143: syntax error : missing ';' before 'type'
So, for example, if you have a function like:
int func(int x)
{
int y = x/4;
return y;
}
You would need to rewrite your code like this:
int func(int x)
{
int y;
y = x/4;
return y;
}
I wonder why that is and also if there is an option somewhere to turn
off.
Thanks