Home > Back-end >  Why the results of the two output vc in different?
Why the results of the two output vc in different?

Time:10-13

#include
#include

The main ()
{
Int I=- 20;
Unsigned j=10;
Printf (" % d ", I + j).
Cout}

CodePudding user response:

Int I=- 20;
Unsigned j=10;

I + j//signed and unsigned number, returns the unsigned number

% d force output a signed integer
Cout
The original poster is not notice signed and unsigned number difference,

CodePudding user response:

I also old, educated,
  • Related