Page 1 of 1

Suppose we have a one dimensional array, named ‘x’, which contains 10 integers. Which of the following is the correct w

Posted: Wed Jul 13, 2022 7:56 pm
by answerhappygod
a) x=(int*)malloc(10);
b) x=(int*)malloc(10,sizeof(int));
c) x=malloc(int 10,sizeof(int));
d) x=(int*)malloc(10*sizeof(int));