#include
#include
void main() {
char *s[10];
int i;
for (i = 0;i < 10;i++)
{
if ((s[i] = (char *)malloc(128)) == NULL)
printf("\nerror\n");
exit(0);
}
for (i = 0;i < 10;i++) {
printf("\ns[%i}=%x", i, s[i]);
free(s[i]);
}
getch();
system("pause");
}