C language overflow problem

topic description

PAT Advanced 1065

https://pintia.cn/problem-sets

clipboard.png

//

 

C
Jan.14,2022

the sum of two negative numbers may also be zero.

if (result >= 0 && A < 0 && B < 0) {
  // 
  printf("Case -sharp%d: false\n", i);
}
Menu