summaryrefslogtreecommitdiffhomepage
path: root/pt-br
diff options
context:
space:
mode:
authorElton Viana <eltonvs@outlook.com>2015-10-12 11:17:18 -0300
committerElton Viana <eltonvs@outlook.com>2015-10-12 11:17:18 -0300
commit253d0d9281c519ed6bceabccef7033e1fad58e01 (patch)
tree5ccb65699e4e68f0eaa1504be2a1802958cae881 /pt-br
parented716a3a9534a1c58a3b6d085825a5144bcb9bba (diff)
Added some extra information
Diffstat (limited to 'pt-br')
-rw-r--r--pt-br/c-pt.html.markdown6
1 files changed, 4 insertions, 2 deletions
diff --git a/pt-br/c-pt.html.markdown b/pt-br/c-pt.html.markdown
index f775f8b0..43688724 100644
--- a/pt-br/c-pt.html.markdown
+++ b/pt-br/c-pt.html.markdown
@@ -221,11 +221,11 @@ 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;
- z = (a > b) ? a : b; // => 10 "se a > b retorne a, senão retorne b."
+ z = (a > b) ? a : b; // => 10 "se a > b retorne a, senão retorne b."
//Operadores de incremento e decremento:
char *s = "iLoveC";
@@ -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) {