+ 2
How do I allocate memory to the following function pointer: void (*ptr)(int*) = factorial;?
1 ответ
+ 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.