Challenge: 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
*ppto 10. - Do not print, input, or allocate memory in this function; only set the value.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 3. Luku 3
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Mahtavaa!
Completion arvosana parantunut arvoon 9.09
Challenge: 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
*ppto 10. - Do not print, input, or allocate memory in this function; only set the value.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 3. Luku 3
single