Hi, could someone please tell me why this produces warning
'warning assignment makes integer from pointer without cast' on line 25
all its supposed to do is set up an array of pointers to integers and then initialise them all to NULL. :-(
code:
int main(void)
{
int *c,n;
c = (int *) malloc(sizeof(int *) * 5);
for(n=0; n<5; n++)
{
c[n] = NULL;
}
}
cheers Bob;