Question: Please I need help for question 1 and 2. I just know that for question 1 the one that says creates a variable called mycontract

Please I need help for question 1 and 2. I just know that for question 1 the one that says "creates a variable called mycontract that points a variable called mystruct" is incorrect, and for number 2 the one that says "fails because we tried to store a string, "Charles", inside a pointer, tempptr" is incorrect. (it's a C programming)
Question 1 struct mystruct char name char *address struct my struct my contact malloc (sizeof (struct namystruct) When the above code executes, it o creates a variable called mycontact that contains a name and an address. O fails because malloc does not know how big the name or address fields are. O creates a variable called mycontact that points a variable called mystruct. O creates a variable called mycontact that points to a structure that contains NULL pointers to name and address. 1 points Save Answer Question 2 struct my struct f char name char *address struct my struct *mycontact malloc (sizeof (struct mystruct)) char tempptr & (my contact name) *tempptr "Charles When the above code executes, it O fails because we tried to store a string, "Charles inside a pointer, tempptr. O gets the address pointed to by name inside mycontact and stores the string "Charles" at that location. O gets the address of name inside mycontact and then sets its value to point to the string "Charles" stored somewhere on the heap. O gets the address of mycontact and stores the string "Charles" there
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
