求解答,我看不出来怎么解决,谢谢!
#include<stdio.h>
#include<stdlib.h>
int main(void)
{
int count, *array;
if ((array(int *)malloc (10 * sizeof(int))) == NULL)
{
printf("can not success!\n");
exit(1);
}
for (count = 0; count < 10; count++)
array[count] = count;
for (count = 0; count < 10; count++)
printf("%2d ", array[count]);
return 0;
}