127. Arithmetic Edge Cases-I

Question.3

A developer checks if a sensor reading is below a threshold:

int error_code = -1;
unsigned int threshold = 1;

if (error_code < threshold) {
   printf("Below threshold");
} else {
   printf("Above threshold");
}

What is the output?

Need Help? Refer to the Quick Guide below

Select Answer