int8_t a = -123;
uint32_t b = 0;
bool c= a < b;
Here 'c' is false as -123 gets converted to uint32
int8_t a = -123;
uint16_t b = 0;
bool c= a < b;
'c' here is coming as true, why?
uint is given precedence in the operation as if any one of the operand is of type uint, the another one is also implicitly converted into uint type. Hence in the first scenario, the output is false, but why this is not followed in the second scenario.