Question: 2. Write a function to enter a name read in from the user using scanf. Call this function in the test function one for a

 2. Write a function to enter a name read in from

2. Write a function to enter a name read in from the user using scanf. Call this function in the test function one for a first name and again for a last name. Store both names in separate buffers. Display both names in the test function. Use a define statement to set the maximum name size. void enter_name(char * cNamePtr, char * cPrompt) { } void test_enter_name() { }

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!