Challenge: Multi-level Pointers
Task
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
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 3
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 9.09
Challenge: Multi-level Pointers
Swipe to show menu
Task
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
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 3
single