Void pointer size. The asterisk (*)tells that the vaiable ptr_name is...
Void pointer size. The asterisk (*)tells that the vaiable ptr_name is a pointer Jul 23, 2025 · As pointers in C store the memory addresses, their size is independent of the type of data they are pointing to. It can be used somewhat similar to a real 2d array, but comes with some overhead. . If sizeof (void*) is 2 you're probably running on a 16 bit platform. void *'s are only guaranteed to hold object (i. Except as previously specified, the result is implementation-defined. The sizes and padding of the structs could also be different causing elements to be positioned at different offsets. Its representation is also like a character pointer. What is the size of a void pointer in C? The size of the void pointer is the same as the size of character type pointer. For example, 8 bytes for a 64-bit System 4 Nov 14, 2025 · A void pointer is a pointer that has no associated data type with it. wdmyq xmol kqofc bihzyf xyvwd vnpd reegzx zgvua ekj qrmn