1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-17 20:11:57 +02:00

Added some extra information

This commit is contained in:
Elton Viana
2015-10-12 11:17:18 -03:00
parent ed716a3a95
commit 253d0d9281

View File

@@ -221,7 +221,7 @@ int main() {
0 || 1; // => 1 (Ou lógico)
0 || 0; // => 0
//Expressão condicional ( ? : )
//Expressão condicional ternária ( ? : )
int a = 5;
int b = 10;
int z;
@@ -291,6 +291,8 @@ int main() {
for (i = 0; i <= 5; i++) {
; // Use ponto e vírgula para agir como um corpo (declaração nula)
}
// Ou
for (i = 0; i <= 5; i++);
// Criando branchs com escolhas múltiplas: switch()
switch (alguma_expressao_integral) {