Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void funcao(int carta, int *soma)
- {
- *soma = *soma + carta;
- }
- int main(void)
- {
- int carta=5, soma=0;
- funcao(carta, &soma);
- printf("%d\n", soma);
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement