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

Array Pointer Arithmetic PracticeArray Pointer Arithmetic Practice

Access the row
Access the column
*arr
**arr
*(arr + row)
*(*arr + column)
Click👇

Task

  • 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.

Everything was clear?

Section 2. Chapter 4
toggle bottom row
course content

Course Content

C++ Pointers and References

Array Pointer Arithmetic PracticeArray Pointer Arithmetic Practice

Access the row
Access the column
*arr
**arr
*(arr + row)
*(*arr + column)
Click👇

Task

  • 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.

Everything was clear?

Section 2. Chapter 4
toggle bottom row
some-alt