72_long_long_constant.c 340 B

1234567891011121314151617181920
  1. #include <stdio.h>
  2. int main()
  3. {
  4. long long int res = 0;
  5. if (res < -2147483648LL) {
  6. printf("Error: 0 < -2147483648\n");
  7. return 1;
  8. }
  9. else
  10. if (2147483647LL < res) {
  11. printf("Error: 2147483647 < 0\n");
  12. return 2;
  13. }
  14. else
  15. printf("long long constant test ok.\n");
  16. return 0;
  17. }