Answered step by step
Verified Expert Solution
Question
1 Approved Answer
SUBJECT: C PROGRAMMING Create a function removeWhite(const char *str1, char *str2) that removes all spaces inside str1 and stores the resulting string in str2. Create
SUBJECT: C PROGRAMMING
Create a function removeWhite(const char *str1, char *str2) that removes all spaces inside str1 and stores the resulting string in str2. Create a function substring (const char *big, const char *small) that takes two strings as parameters and returns 1 if the string small is included in the string big (without using string.h functions strstr or strchr) Write a program (str Processing.c) that uses the two functions you wrote. Your program should first ask the user to enter a string (possibly containing spaces). It should then use removeWhite to compute the new corresponding string without spaces and print it to the standard output. Next, your program should ask the user to enter two strings, read them and outputs one of the following statements accordingly: The string XXXX contains the string YYYY. The string XXXX does not contain the string YYYY. Where XXXX and YYYY are replaced by the actual strings entered by the user
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