Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Multi-level Pointers | Dynamic Allocation and Multi-level Pointers
C Pointers Mastery

bookChallenge: Multi-level Pointers

Tarefa

Swipe to start coding

Write a function that sets the integer value pointed to by a double pointer to 10.

  • Define a function void set_to_ten(int **pp);.
  • The function must set the value of the integer pointed to by *pp to 10.
  • Do not print, input, or allocate memory in this function; only set the value.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 3
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

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

close

bookChallenge: Multi-level Pointers

Deslize para mostrar o menu

Tarefa

Swipe to start coding

Write a function that sets the integer value pointed to by a double pointer to 10.

  • Define a function void set_to_ten(int **pp);.
  • The function must set the value of the integer pointed to by *pp to 10.
  • Do not print, input, or allocate memory in this function; only set the value.

Solução

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!

Seção 3. Capítulo 3
single

single

some-alt