Question
*Code starts here NOTE: You should NOT use array notation inside your functions. Use only * pointer notation for any code that you write. *
*Code starts here
NOTE: You should NOT use array notation inside your functions. Use only * pointer notation for any code that you write. * */
#include
#define MAX_STRING_LEN 1024
void split_vowels(char *str, char *vowels) { /** * Move all of the vowels from `str` (in the order of appearance) to the * string `vowels`. (ie, after the function call `str` should not have any * vowels in it). You may assume there is enough space allocated in `vowels`. * * Look at the test case below for an example. */
return; // Not returning anything. `str` and `vowels` modified directly. }
I did not include a main function but you are welcome to for testing
Please do NOT include any other c libraries (I've asked this question on chegg and libraries are being used when they are not allowed to be included.) only use the two already included
Also please make sure to USE pointers and NOT arrays directly
Thanks for the help :)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started