Questo esempio rappresenta quello che volevi chiedere?codice:#include <stdio.h> int a = 2; int b = 4; void a_s(int *); void b_s(int *); int main(void) { a_s(&a); b_s(&b); printf("A = %d\nB = %d\n", a, b); return 0; } void a_s(int *a) { *a += (*a); } void b_s(int *b) { *b += (*b); }

Rispondi quotando