You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
villares edited this page May 24, 2020
·
4 revisions
Nome
++ (incremento)
Exemplos
int a =1; // Atribui 1 à "a"int b = a++; // Atribui 1 à "b", e depois incrementa "a" para 2 int c = a; // Atribui 2 à "c"
Descrição
Incrementa o valor de uma variável inteira em 1. Equivale a operação i = i + 1. Se o valor da vairável i é cinco, então a expressão i++ incrementará o valor de i para 6.