Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions