Skip to content

Instantly share code, notes, and snippets.

@sjbodzo
Created October 16, 2013 03:46
Show Gist options
  • Save sjbodzo/7002394 to your computer and use it in GitHub Desktop.
Save sjbodzo/7002394 to your computer and use it in GitHub Desktop.
Website Code Fragment #1 - numerical variable type examples in C++
int x = 135; //stores the value 135 in an int variable named x
float y = 13.5f; //stores the float value 13.5 in a float variable named x
float z = 1.39e22; //stores the float value 1.39*10^22 in a float variable named z
long double a = 1.2345L; //stores the long double value 1.2345
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment