I recently asked a question. Say we have:
void test(int32_t b){
printf("value is %d", b);
}
int main(){
uint32_t a = 43;
test(a);
return 0;
}
What happens when you pass an unsigned variable to a signed parameter? How does a copy of a value work and how does a cast work?
Can someone explain this to me in detail?
thank
source
share