F
Fraser Ross
int A(int size){
if (size < (unsigned int)0)
return 1;
return 0;
}
If I pass for instance -10 to A should I not have 0 returned? The type
int should be converted to unsigned int and -10 will be some large
number with a 2's complement arithmetic processor.
Fraser.
if (size < (unsigned int)0)
return 1;
return 0;
}
If I pass for instance -10 to A should I not have 0 returned? The type
int should be converted to unsigned int and -10 will be some large
number with a 2's complement arithmetic processor.
Fraser.