mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 15:43:58 +00:00
Added some extra information
This commit is contained in:
parent
ed716a3a95
commit
253d0d9281
@ -221,7 +221,7 @@ int main() {
|
|||||||
0 || 1; // => 1 (Ou lógico)
|
0 || 1; // => 1 (Ou lógico)
|
||||||
0 || 0; // => 0
|
0 || 0; // => 0
|
||||||
|
|
||||||
//Expressão condicional ( ? : )
|
//Expressão condicional ternária ( ? : )
|
||||||
int a = 5;
|
int a = 5;
|
||||||
int b = 10;
|
int b = 10;
|
||||||
int z;
|
int z;
|
||||||
@ -291,6 +291,8 @@ int main() {
|
|||||||
for (i = 0; i <= 5; i++) {
|
for (i = 0; i <= 5; i++) {
|
||||||
; // Use ponto e vírgula para agir como um corpo (declaração nula)
|
; // 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()
|
// Criando branchs com escolhas múltiplas: switch()
|
||||||
switch (alguma_expressao_integral) {
|
switch (alguma_expressao_integral) {
|
||||||
|
Loading…
Reference in New Issue
Block a user