Challenge: Multi-level Pointers
Tâche
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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 3. Chapitre 3
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Génial!
Completion taux amélioré à 9.09
Challenge: Multi-level Pointers
Glissez pour afficher le menu
Tâche
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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 3. Chapitre 3
single