Wednesday, November 14, 2018

c - Necessity of use (float*) before malloc

In the program of any pointer variable we often use :



float *x;

x=(float*)malloc(a*sizeof(long int));


I want to know why we use (float*) in front of malloc?

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...