i have problem with keil
int mode = -1; if (mode%5 == 0)
{
xyz();
}
In the keil above if condition becoming true but in other compiler this same condition not becoming true what is the reason behind this
In what version/compiler ?In armClang 6.16 it works as expected (didn't test other)
sorry i found my mistake i previously defined as uint8_t mode so it cant be -1
can you tell me how to delete this question.
Great that you share the root cause.
This is why it is ok to keep this post, helping to answer similar ones.