+ 2
How do I allocate memory to the following function pointer: void (*ptr)(int*) = factorial;?
1 Respuesta
+ 3
These pointers are used when the type of the variable is not known. Since void has no type, the operation of unaddressing (taking the contents) and address arithmetic are not applicable to it, since the data representation is unknown.