Question: Ovoid getName(struct Name *name) { Microsoft Visual Studio Debug Console X char yesNo; Contact Details printf(Please enter the contact's first name: ); Name Details scanf(930[~

Ovoid getName(struct Name *name) { Microsoft Visual Studio Debug Console X char yesNo; Contact Details printf("Please enter the contact's first name: "); Name Details scanf("930[~\ 18*c", name->firstName); First name: Wilma DEE Middle initial(s): N. O. Flint Rubble printf("Do you want to enter a middle initial(s)? (y or n): "); Last name: Flint Rubble scanf("%c%*c", &yesNo); Address Details if (yesNo == 'y' | | yesNo == 'Y" ) { - - -- printf("Please enter the contact's middle initial(s) : "); Street number: 30 scanf("%6[^\ ]%*c", name->middleInitial); Street name: Bedrock St. clearkeyboard; Apartment: 12 "Postal code: Z8Z 7R7 City: North York printf("Please enter the contact's last name: "); Phone Numbers scanf("*35[^\ 1%*c",name->lastName); - - - "Cell phone number: 9992223333 Home phone number: 8881112222 Avoid getAddress(struct Address *address) Business phone number: 3337779999 char yesNo; Structure test for Contact using functions done! C: \\Users\\Admin\\Documents \\Seneca\\Introduction to Programming Using C (IPC144) \\Assignments\\IPC-Project-master\\A1\\Debug\\AIM do { 54. exe (process 25780) exited with code 0. printf("Please enter the contact's street number: "); To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the conso scanf("%d%*c", &address->streetNumber); le when debugging stops. while (address->streetNumber
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
