hi all!
I have a c program and at some point I do:
the error I get while compiling is :Code:void *a; allocate(&a);//function that allocates a pointer--this works ok memcpy(&b,a+25*sizeof(c),sizeof(int));//c is a struct
error: pointer of type 'void *' used in arithmetic
why is that?