Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

JDBC Database Programming With J2ee

Authors: Art Taylor

1st Edition

0130453234, 978-0130453235

More Books

Students also viewed these Databases questions