Question: 1. Type the following program Lab7A.C and run it. #include #include #include int main(void) { char name[80]: system(cls); printf(Enter your full name :); gets(name); printf(

 1. Type the following program Lab7A.C and run it. #include #include

1. Type the following program Lab7A.C and run it. #include #include #include int main(void) { char name[80]: system("cls"); printf("Enter your full name :"); gets(name); printf(" Your name is %s ", name): system("pause"); return } 2. Modify the program as follows: 1) Modify the program Lab7A.C to print your name using a function myPrintf(char* name). Your main function pass the string to function myPrintf(char* name), the function prints your name the same as Lab7A.C does. Save the program as Lab7B.C. 2) Modify the program Lab7A.C to count the number of characters in the name and display the number of characters. Do not count spaces as characters. The ASCII code for a space is 32 or as a character. The program must use the function countChar(char* name) Save the program as Lab7C.C. Hint: "0will be at end of every string

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!