Skip to content

Instantly share code, notes, and snippets.

@VitaminaCPP
Created September 22, 2014 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VitaminaCPP/940c141d2423cb48dd16 to your computer and use it in GitHub Desktop.
Save VitaminaCPP/940c141d2423cb48dd16 to your computer and use it in GitHub Desktop.
auto caracter = 'c'; // auto = char
auto entero = 12345; // auto = int
auto flotante = 1.23f; // auto = float
auto doble = 1.234; // auto = double
auto sin_signo = 1234u; // auto = unsigned int
auto largo = 1234L; // auto = long
auto larguisimo = 123LL; // auto = long long
auto superlativo = 12ULL; // auto = unsigned long long
// Error de compilacion! el tipo no puede
// deducirse sin un inicializador!
auto error;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment