Question: Time left 0 : 0 9 : 5 4 Question 1 Not yet answered Marked out of 0 . 2 5 Flag question Question text

Time left 0:09:54
Question 1
Not yet answered
Marked out of 0.25
Flag question
Question text
Suppose you wanted to reserve space in memory for one number of typefloatand then store the memory location in a variablenumof typefloat *. Which of the following would be the correct way to do so?
Question 1Answer
a.
(float *) num = malloc (float);
b.
num = malloc(float *);
c.
num =(float *) malloc(sizeof(float));
d.
num =(float) malloc(sizeof(float *));

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!