Question: You will write code to manipulate strings using pointers but without using the string handling functions in string.h. Do not include string.h in your code

 You will write code to manipulate strings using pointers but without

You will write code to manipulate strings using pointers but without using the string handling functions in string.h. Do not include string.h in your code 1. You will read in two strings from a input file at a time (there will be 2n strings, and you will read them until EOF) and then do the following. You alternately take characters from the two strings and string them together and create a new string which you will store in a new stringvariable. You may assume that each string is no more than 20 characters long (not including the null terminator), but can be far less. Yo must use pointers. You may store each string in an array, but are not allowed to treat the string as a character array in the sense that you may not have statements likeciail, but rather *c *a is allowed. You will not get any points unless you use pointers. Example: Input file ABCDE PQRSTFG acegikmoqsuwyz bdfhjlnprtvx output file APBQCRDSETFG abcdefghijklmnopgrstuvwxyz You will write code to manipulate strings using pointers but without using the string handling functions in string.h. Do not include string.h in your code 1. You will read in two strings from a input file at a time (there will be 2n strings, and you will read them until EOF) and then do the following. You alternately take characters from the two strings and string them together and create a new string which you will store in a new stringvariable. You may assume that each string is no more than 20 characters long (not including the null terminator), but can be far less. Yo must use pointers. You may store each string in an array, but are not allowed to treat the string as a character array in the sense that you may not have statements likeciail, but rather *c *a is allowed. You will not get any points unless you use pointers. Example: Input file ABCDE PQRSTFG acegikmoqsuwyz bdfhjlnprtvx output file APBQCRDSETFG abcdefghijklmnopgrstuvwxyz

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!