I have an excerpt of a function with the following code:
printf("caminho: %d\n", t);
printf("min: %d\n", min);
if( min >= t && t != -1);
{
printf("oi\n");
min = t;
printf("min: %d\n",min);
}
and as a result I have:
path: 2
min: 1
oi
min: 2
The line that prints "hi" is executed, even with the conditional being false.
Can anyone tell me how this can happen?