Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Concatenating Strings | Common String Operations
/
C Strings
Seção 3. Capítulo 6
single

single

bookChallenge: Concatenating Strings

Deslize para mostrar o menu

Tarefa

Swipe to start coding

Practice concatenating strings safely in C by implementing a function that appends the contents of one string to another, making sure not to exceed the destination buffer's size and always ensuring the result is null-terminated.

  • Append the contents of src to the end of dest without exceeding dest_size - 1 characters in dest.
  • Ensure the resulting string in dest is always null-terminated.
  • Only append as many characters from src as will fit in the remaining space of dest.
  • Do not modify characters in dest beyond the allowed buffer size.

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

Pergunte à IA

expand

Pergunte à IA

ChatGPT

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

some-alt