Question: What does str = malloc ( 5 0 ) ; mean in the following code? int x ; void main ( ) { int y

What does str = malloc(50); mean in the following code?
int x;
void main(){
int y;
char str;
str = malloc (50);
size = calcSize (10);
a. allocates 50 bytes of dynamic stack storage
b. allocates 50 bytes of dynamic heap storage
c. allocates 50 bytes of static heap storage
d. allocates 50 bytes of static stack storage
 What does str = malloc(50); mean in the following code? int

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