Question: char * c = malloc ( sizeof ( char ) ) ; int * i = malloc ( sizeof ( int ) ) ; char

char *c=malloc(sizeof(char));
int *i = malloc(sizeof(int));
char *s=malloc(20*sizeof(char));
double *d = malloc(sizeof(double));
int sc=sizeof(c), si=sizeof(i), ss=sizeof(s), sd=sizeof(d);
In light of the above code, which of the following is true? Remember what is actually stored in each variable!

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!