daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest Dec 9th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top