Question
Look at the following array definition:char str[10];Assume name is also a char array, and it holds a C-string. Write code that copies the contents of name to str if the C-string in name is not too big to fit in str.
Step 1
In this case, `str` can hold up to 9 characters plus the null terminator, making the total size 10. Show more…
Show all steps
Your feedback will help us improve your experience
Watch the video solution with this free unlock.
EMAIL
PASSWORD