Challenge: Modify Array Values
Task
Swipe to start coding
Write a function that modifies every element of an array by doubling its value. Follow these requirements:
- Declare and initialize the array in
main; - Pass the array and its size to a function;
- Use a loop to access each element;
- Modify the array in place;
Solution
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 4
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 7.69
Challenge: Modify Array Values
Swipe to show menu
Task
Swipe to start coding
Write a function that modifies every element of an array by doubling its value. Follow these requirements:
- Declare and initialize the array in
main; - Pass the array and its size to a function;
- Use a loop to access each element;
- Modify the array in place;
Solution
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 4
single