Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Array Pointer Arithmetic Practice | Pointer Arithmetic
C++ Pointers and References
course content

Kursinnhold

C++ Pointers and References

C++ Pointers and References

1. Pointers Fundamentals
2. Pointer Arithmetic
3. References Fundamentals
4. Dynamic Memory Allocation

book
Array Pointer Arithmetic Practice

Access the row
Access the column
*arr
**arr
*(arr + row)
**(arr + column)
Oppgave

Swipe to start coding

  1. Access the last element of the second row of the array.
  2. Access the fourth element of the third row of the array.
  3. Output the sum of these elements.

Løsning

cpp

solution

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 4
toggle bottom row

book
Array Pointer Arithmetic Practice

Access the row
Access the column
*arr
**arr
*(arr + row)
**(arr + column)
Oppgave

Swipe to start coding

  1. Access the last element of the second row of the array.
  2. Access the fourth element of the third row of the array.
  3. Output the sum of these elements.

Løsning

cpp

solution

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 4
Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Vi beklager at noe gikk galt. Hva skjedde?
some-alt