Kursinnhold
C++ Pointers and References
C++ Pointers and References
3. References Fundamentals
Array Pointer Arithmetic Practice
*arr | **arr |
*(arr + row) | **(arr + column) |
Oppgave
Swipe to start coding
- Access the last element of the second row of the array.
- Access the fourth element of the third row of the array.
- Output the sum of these elements.
Løsning
solution
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 4
Array Pointer Arithmetic Practice
*arr | **arr |
*(arr + row) | **(arr + column) |
Oppgave
Swipe to start coding
- Access the last element of the second row of the array.
- Access the fourth element of the third row of the array.
- Output the sum of these elements.
Løsning
solution
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 4