Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Exemplo de passagem de parâmetro por valor
- int main ()
- {
- int meu_int = 10;
- // chamo a função passando a variável. Ela fica com preguiça, não vai,
- // e manda um clone, que é alterado no seu lugar, mantendo a "meu_int"
- // original intacta.
- incrementa (meu_int);
- printf("meu_int: %d \n", meu_int); //--> imprimirá meu_int: 10
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement