#include <stdio.h>
#include <string.h>
#include <stdlib.h>

struct contact {
    char name[30];
    int phone_number;
    char address[30];
};

// update_contact goes here
// Submitted code below
void update_contact(struct *contact c, char new_name, int new_number, char new_address) {
    strcpy(c.name = new_name);
    c.phone_number = new_number;
    strcpy(c.address = new_address);
}
// Submitted code above

int main(int argc, char **argv) {
    struct contact friend;
    // set initial values for friend
    strcpy(friend.name, "Jane Doe");
    friend.phone_number = 377177377;
    strcpy(friend.address, "3771 University Avenue");

    char *name;
    int number;
    char *address;
    // in hidden code set values for these 3 variables
    
    // call update_contact to change the values in friend
    update_contact(&friend, name, number, address);
    return 0;
}
// Submitted code below
write the function update_contact which takes a pointer to the struct contact, a new name, a new number, and a new address to change the struct’s members. Look at the function call for the order of arguments and appropriate types.
