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

Pointer Arithmetic PracticePointer Arithmetic Practice

Завдання

  • Create a pointer that points to the first variable.
  • Find the distance between memory locations of this two variables.
  • Using the pointer arithmetic move the pointer to the location of the second variable.
  • Modify the value of dereferenced pointer and output the second variable.

Все було зрозуміло?

Секція 2. Розділ 2
toggle bottom row
course content

Зміст курсу

C++ Pointers and References

Pointer Arithmetic PracticePointer Arithmetic Practice

Завдання

  • Create a pointer that points to the first variable.
  • Find the distance between memory locations of this two variables.
  • Using the pointer arithmetic move the pointer to the location of the second variable.
  • Modify the value of dereferenced pointer and output the second variable.

Все було зрозуміло?

Секція 2. Розділ 2
toggle bottom row
some-alt