G
G Fernandes
Hello,
I have a question about using an unsigned int and a signed long int in
an expression (where UINT_MAX > LINT_MAX).
Based on the conversion rules, the unsigned int will be convered to
long int, but what if it can't fit? Is this undefined behaviour?
Any help will be appreciated.
[I guess the same thing can happen with unsigned long and signed long
long]
I have a question about using an unsigned int and a signed long int in
an expression (where UINT_MAX > LINT_MAX).
Based on the conversion rules, the unsigned int will be convered to
long int, but what if it can't fit? Is this undefined behaviour?
Any help will be appreciated.
[I guess the same thing can happen with unsigned long and signed long
long]