Question: Ieps/Technical Procedure 1. Consider the following declarations: char str1[]=Hello EET!; char str2[] = CET with EET; char str3[40]; char str4[40]; char str5[] = SET; Implement

 Ieps/Technical Procedure 1. Consider the following declarations: char str1[]="Hello EET!"; char

str2[] = "CET with EET"; char str3[40]; char str4[40]; char str5[] =

"SET"; Implement these items into program that use the strepy () function

Ieps/Technical Procedure 1. Consider the following declarations: char str1[]="Hello EET!"; char str2[] = "CET with EET"; char str3[40]; char str4[40]; char str5[] = "SET"; Implement these items into program that use the strepy () function to copy str 1 into str2, SET students into str 3 , and str5 into str4. Output str1, str2, str3, str4, and str5, afterwards. Ex: str1 =xx Use a void function to accomplish this task. 2. Consider the following function that counts the number of words in a string: void words (char string[]) \{ int result =0,i=0; while (data [i] !=0 ) if (data [i++]== ' ') result++; if (data [0] !=0 ) result++; return(result) ; \} See page 115 of your textbook. Use this function to write a program to enter a string up to 100 characters and output the number of words. Trial Data EET and CET are our maiors Questions: 1. Consider Procedure 1. a. What was the output of Procedure 1? b. What was your function call statement? Simply write the one liner. 2. Consider Procedure 2. What was the output of Procedure 2? b. What was your function call statement? Simply write the one liner

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!