Page 1 of 1

Write a function called copyCString() that takes two C-Strings (char* with null terminator) s1 and 52 repectively as arg

Posted: Fri May 20, 2022 2:55 pm
by answerhappygod
Write A Function Called Copycstring That Takes Two C Strings Char With Null Terminator S1 And 52 Repectively As Arg 1
Write A Function Called Copycstring That Takes Two C Strings Char With Null Terminator S1 And 52 Repectively As Arg 1 (18.6 KiB) Viewed 27 times
Write a function called copyCString() that takes two C-Strings (char* with null terminator) s1 and 52 repectively as arguments. Write code to copy the contents of s2 into s1, until the null character is reached in s2. If the null character is reached in s1, terminate your loop (that means you stop copying s2 to 51). The function does not need to return anything.