Guest User

Untitled

a guest
Dec 9th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. main() {
  4. char c = 'a';
  5. //stored as an int
  6.  
  7. //Can also declare short int sInt;
  8. //At least 16 bits in size
  9. short sInt = 15;
  10. //By default it is signed.
  11. unsigned short usInt = 10;
  12.  
  13. //At least 32 bits
  14. long l = 2;
  15.  
  16. //Singles precision - 32 bits
  17. float f = 12.75;
  18.  
  19. //double precision - 64 bits
  20. double d = 12.75;
  21.  
  22. //extended precision
  23. long double x = 10;
  24. }
Add Comment
Please, Sign In to add comment