Features
If we write some new data to a pointer or a link, then this will also be reflected in the variable to which they point.
Pointers:
123456int a = 2; int *pa = &a; cout << a << endl; *pa = 50; cout << a;
References:
123456int a = 2; int &ra = a; cout << a << endl; ra = 50; cout << a;
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 8
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Suggested prompts:
Still meg spørsmål om dette emnet
Oppsummer dette kapittelet
Vis eksempler fra virkeligheten
Awesome!
Completion rate improved to 2.94
Features
Sveip for å vise menyen
If we write some new data to a pointer or a link, then this will also be reflected in the variable to which they point.
Pointers:
123456int a = 2; int *pa = &a; cout << a << endl; *pa = 50; cout << a;
References:
123456int a = 2; int &ra = a; cout << a << endl; ra = 50; cout << a;
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 8