Guest User

Untitled

a guest
Dec 19th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. // Sintaxe preferível. Note que você não pode usar "var" ao invés de "string[]".
  2. string[] vowels1 = { "a", "e", "i", "o", "u" };
  3.  
  4. // Se você usar digitação explícita, você pode usar "var".
  5. var vowels2 = new string[] { "a", "e", "i", "o", "u" };
  6.  
  7. // Se você especificar um tamanho para o array/matriz, você deve inicializar
  8. // os elementos um de cada vez.
  9. var vowels3 = new string[5];
  10.  
  11. vowels3[0] = "a";
  12. vowels3[1] = "e";
  13. ...
  14. vowels3[4] = "u";
Add Comment
Please, Sign In to add comment