Question: #include #include / / Function prototypes void fillPassword ( size _ t , char [ ] ) ; void showResults ( char ) ; /

#include
#include
// Function prototypes
void fillPassword(size_t , char[]);
void showResults(char);
// should have void listed
void showMenu();
// Define a variable to hold a password
// and the copy
char password[15];
char cpassword[15];
int main(void)
{
// Welcome the User
printf("Welcome to the C Array Program!
");
// Variables
char cont ='y'; // To continue with loop
int cVar =0; // process variable
// Display menu and Get Selection
while (cont !='E' && cont !='e'){
// Diaply the Menu
showMenu();
// Get the user selection
cont = getchar();
// Display the menu response
showResults(cont);
}
// Call the Copy routine
fillPassword(sizeof(password),password);
// Display variable values
printf("password is %s
", password);
printf("cVar is %d
", cVar);

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 Programming Questions!