This is another test post… yes, I know: you would like to kill me just because I’m doing a lot of test in this blog. Be patience, this is the last (I hope):
#include <stdio.h>
void soma (int, int, int *);
int main (void) {
int vlr_a;
int vlr_b;
int resultado;
printf("Entre com os valores: ");
scanf("%d %d", &vlr_a, &vlr_b, &resultado);
soma(vlr_a, vlr_b, &resultado);
printf("Soma: %d\n", resultado);
return 0;
}
void soma (int a, int b, int *valor) {
*valor = a + b;
}

