Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Multi-level Pointers | Dynamic Allocation and Multi-level Pointers
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
C Pointers Mastery

bookChallenge: Multi-level Pointers

Tehtävä

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.

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 3. Luku 3
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

close

bookChallenge: Multi-level Pointers

Pyyhkäise näyttääksesi valikon

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 3. Luku 3
single

single

some-alt