Ask Your Question
1

Can a void pointer be converted to a void array?

asked 2021-08-25 11:00:00 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-03-11 06:00:00 +0000

plato gravatar image

No, a void pointer cannot be converted to a void array directly. Void pointers point to a memory location without any type information, while a void array is a collection of memory locations with a specific data type. To convert a void pointer to a void array, you would need to cast the void pointer to a specific data type first, and then to the void array.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-08-25 11:00:00 +0000

Seen: 16 times

Last updated: Mar 11 '22