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

bookPointer Arithmetic Practice

Tarefa

Swipe to start coding

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

Solução

solution.cpp

solution.cpp

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 2
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

Awesome!

Completion rate improved to 5.88

bookPointer Arithmetic Practice

Deslize para mostrar o menu

Tarefa

Swipe to start coding

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

Solução

solution.cpp

solution.cpp

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

close

Awesome!

Completion rate improved to 5.88
Seção 2. Capítulo 2
single

single

some-alt