Question: Write a function split that takes as argument a C string (terminated with '0') that contains a single occurrence of the @character. Your function
Write a function split that takes as argument a C string (terminated with '\0') that contains a single occurrence of the @character. Your function should print the two substrings separated by '@' on separate lines, using the "%s" format specifier for printf. (You may not print individual characters with put char or "%c".) Here are two examples showing the function behavior: Function Call Split("place@here"); Output place here Split("do@that"); wwwwwww void Split (char * s) do that { /* Add your code here */
Step by Step Solution
There are 3 Steps involved in it
Here is the implementation of the Split function in C that takes a C stri... View full answer
Get step-by-step solutions from verified subject matter experts
