Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- main() {
- char c = 'a';
- //stored as an int
- //Can also declare short int sInt;
- //At least 16 bits in size
- short sInt = 15;
- //By default it is signed.
- unsigned short usInt = 10;
- //At least 32 bits
- long l = 2;
- //Singles precision - 32 bits
- float f = 12.75;
- //double precision - 64 bits
- double d = 12.75;
- //extended precision
- long double x = 10;
- }
Add Comment
Please, Sign In to add comment