Question: What issue is cause when trying to update an author's information in the struct storage method used in the lab? The Author array was static

What issue is cause when trying to update an author's information in the struct storage method used in the lab?
The Author array was static and could not be changed.
The author array needed to be resized, which is slow.
Only one instance of that author is updated.
The memory for the author would leak.
There was no problem
2
50 points
Does the following function have a memory problem?
int * fun(int n){
if (n =0){
return NULL;
}
int * tmp;
tmp = malloc(sizeof(int)* n);
*tmp =7;
return tmp;
}
No
Yes
What issue is cause when trying to update an

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!