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

bookChallenge: Modify Array Values

Tarea

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;

Solución

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 3. Capítulo 4
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

Suggested prompts:

Can you explain that in more detail?

What are the main benefits or drawbacks?

Can you give me an example?

close

bookChallenge: Modify Array Values

Desliza para mostrar el menú

Tarea

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;

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 3. Capítulo 4
single

single

some-alt