print2.c 488 B

12345678910111213141516
  1. /* print2.c-more printf() properties */
  2. #include <stdio.h>
  3. int main(void)
  4. {
  5. unsigned int un = 3000000000; /* system with 32-bit int */
  6. short end = 200; /* and 16-bit short */
  7. long big = 65537;
  8. long long verybig = 12345678908642;
  9. printf("un = %u and not %d\n", un, un);
  10. printf("end = %hd and %d\n", end, end);
  11. printf("big = %ld and not %hd\n", big, big);
  12. printf("verybig= %lld and not %ld\n", verybig, verybig);
  13. return 0;
  14. }