How can I check if (a + b) is larger than (max long long)

Revision en2, by tgbaodeeptry, 2021-05-22 15:58:00

Assume I have 3 long long varables a, b and n. And them are approximately (max long long)( 2.10^18 ).

So, are there any ways that I can check if a + b is larger than n?

Thanks so much guys

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English tgbaodeeptry 2021-05-22 15:58:00 5 Tiny change: ').\n\nSo, is there any' -> ').\n\nSo, are there any'
en1 English tgbaodeeptry 2021-05-22 15:57:01 265 Initial revision (published)