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
course content

Conteúdo do Curso

C++ Pointers and References

C++ Pointers and References

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

Array Pointer Arithmetic Practice

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

Tarefa

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

Tarefa

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

Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo

Tudo estava claro?

Seção 2. Capítulo 4
toggle bottom row

Array Pointer Arithmetic Practice

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

Tarefa

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

Tarefa

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

Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo

Tudo estava claro?

Seção 2. Capítulo 4
toggle bottom row

Array Pointer Arithmetic Practice

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

Tarefa

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

Tarefa

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

Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo

Tudo estava claro?

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

Tarefa

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

Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Seção 2. Capítulo 4
Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
We're sorry to hear that something went wrong. What happened?
some-alt