28 Ott 2002
Costruzione di Interfacce - Paolo Cignoni
30
Altri esempi
vCosa succede se si dereferenzia un puntatore e si memorizza in un’altra variabile? vint myInteger = 1000;                 // set up an integer with value 1000
int* myIntegerPointer = &myInteger;   // get a pointer to it
int mySecondInteger = *myIntegerPointer; // now, create a second integer
                                      // whose value is that of the integer
                                      // pointed to by the above pointer
 Cosa succede se cambio il valore di myInteger? Cambia anche mySecondInteger?