Question: You are to use predefined C string functions. Assume you have the following strings defined: char strl = this is some text and some more,

 You are to use predefined C string functions. Assume you have

You are to use predefined C string functions. Assume you have the following strings defined: char strl = "this is some text and some more", buf2[100]; char *ptrl, *ptr2; (a) In one C statement, assign pointer ptrl to the first occurrence of the character e in strl. (b) In one C statement, assign pointer ptr2 to the last occurrence of the character e in strl. (c) In one C statement, copy the substring of strl from ptrl to ptr2 (inclusively) into str2. Don't worry about bounds checking or null terminating. (d) In one C statement, append the word "chicken" onto the end of strl. Again, don't worry about bounds checking

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!