How to realize the Operation between unsigned number and signed number in C language
This article mainly explains "how to realize the operation between unsigned number and signed number in C language". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how C language realizes the operation between unsigned numbers and signed numbers.
Unsigned int and int perform operations
Let's just look at the examples to illustrate the problem.
# include using namespace std;int main () {int a =-1; unsigned int b = 16; if (a > b) cout