Question: Write a function, halfstring , which creates a new string consisting of only odd-numbers characaters of the first string and returns in the second string
Write a function, halfstring, which creates a new string consisting of only odd-numbers characaters of the first string and returns in the second string argument. For example: "John Smith" would become Jh mt"
The function prototype must be: void halfstring(char [ ], char [ ]);
Do not use ANY system-defined string functions (i.e. those found in the string.h library including strlen, strcat, strcpy, etc.).
The langauge is C
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
