i tried to take input from user input type is not determined(can be char or int) i wanna take input and store in pointer array while i doing that job forr each pointer i wanna take place from leap area that is using malloc but below code doesnot work why???
int main(void)
{
char *tutar[100][20],temp;
int i;
int n;
i=0;
while(temp!='x')
{
scanf("%c",&temp);
tutar[i]=malloc(sizeof(int));
tutar[i]=temp;
++i;
}
n =i;
for(i=0;i<=n;++i)
{
printf(" %c ",*tutar[i]);
}
printf("\n\n");
/*for(i=0;i<=n;++i)
{
printf("%d",atoi(*tutar[i]));
}
*/
}
note that; this cite has problem when rewrite(edit) the previous mail it is general problem or not