Question from the Language C - Fundamentals test

Find the mistake in the following C code:

Waiting for validation
Original question

What is the mistake in the following code ?

int main() 
{
    unsigned char speed= -255;
    printf("the motor has a rotational speed of %d km/h", speed);
    return 0;
}
New question

What can be said about the following code?

int main() 
{
    unsigned char speed = -1;
    printf("The car has a speed of %d km/h", speed);
    return 0;
}
Author: JodyStatus: Waiting for validation(Update)Question not yet passed
0
Community EvaluationsNo one has reviewed this question yet, be the first!