codice:#include <stdio.h> typedef struct m { int f1; int f2; } tp; void init(tp *pM); int main(void) { tp a; tp b; int i; a.f1 = 1000; a.f2 = 233; printf("%d %d \n", a.f1, a.f2); init(&b); printf("%d %d \n", b.f1, b.f2); scanf("%d \n", &i); return 0; } void init(tp *pM) { pM->f1 = 20; pM->f2 = 24; }

Rispondi quotando