Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Challenge: Modify Array Values | Using Arrays in Programs
C++ Arrays

bookChallenge: Modify Array Values

Taak

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;

Oplossing

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 3. Hoofdstuk 4
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

close

bookChallenge: Modify Array Values

Veeg om het menu te tonen

Taak

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;

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 3. Hoofdstuk 4
single

single

some-alt