Home > Back-end >  How to have spilled data operation
How to have spilled data operation

Time:10-18


How to calculate in C + 2244668800=1133557799 and - 2147483648-1=for the correct result?

CodePudding user response:

Can use int64_t c

CodePudding user response:

 # include & lt; Stdio. H> 
# include & lt; Inttypes. H>
# include & lt; Stdint. H>
Int main () {

Int64_t a=1133557799 + 2244668800;
Int64_t b=a - 2147483648-1;

Printf (" % + "PRId64" \ n ", b);
return 0;
}

CodePudding user response:

The
reference 1/f, the truth is more important than right or wrong response:
c can use int64_t

Thank you , small white one, thank you for your guidance
  • Related