Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Why does C sometimes output negative numbers when it outputs integers?
Why does C sometimes output negative numbers when it outputs integers?
Can you post the code?

Landlord, I didn't see your situation.

I used your code, compiled by winTC, and the code is as follows.

# Contains? " stdio.h "

Master ()

{

int? Party A and Party B;

Scanf("%d%d ",&i, & b);

printf("%d,%d ",a,b);

getch();

}

Input 4-7, output 4, -7

There is no overflow.