Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Clone and Modify | Array Manipulation and Sorting
Quizzes & Challenges
Quizzes
Challenges
/
C# Arrays

bookChallenge: Clone and Modify

Tarefa

Swipe to start coding

Write a program that demonstrates cloning an array and modifying the clone without affecting the original. You will work with integer arrays.

  • The CloneArray function should create a new array that is a copy of the input array and return it.
  • The ModifyArray function should change each element in the provided array by adding 10 to it.
  • The main execution should show that modifying the clone does not change the original array.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 6
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

bookChallenge: Clone and Modify

Deslize para mostrar o menu

Tarefa

Swipe to start coding

Write a program that demonstrates cloning an array and modifying the clone without affecting the original. You will work with integer arrays.

  • The CloneArray function should create a new array that is a copy of the input array and return it.
  • The ModifyArray function should change each element in the provided array by adding 10 to it.
  • The main execution should show that modifying the clone does not change the original array.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 6
single

single

some-alt