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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!