Write a function called copyCString() that takes two C-Strings (char* with null terminator) s1 and 52 repectively as arg
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write a function called copyCString() that takes two C-Strings (char* with null terminator) s1 and 52 repectively as arg
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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!